WC_Helper_API::post( string $endpoint, array $args = array() )

Wrapper for self::request().


Description Description


Parameters Parameters

$endpoint

(Required) The helper API endpoint to request.

$args

(Optional) Arguments passed to wp_remote_request().

Default value: array()


Top ↑

Return Return

(array) The response object from wp_safe_remote_request().


Top ↑

Source Source

File: includes/admin/helper/class-wc-helper-api.php

	public static function post( $endpoint, $args = array() ) {
		$args['method'] = 'POST';
		return self::request( $endpoint, $args );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.