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()
Return Return
(array) The response object from wp_safe_remote_request().
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 ); }