woocommerce_helper_api_request_args filter-hookWC 1.0

Allow developers to filter the request args passed to wp_safe_remote_request(). Useful to remove sslverify when working on a local api dev environment.

Usage

add_filter( 'woocommerce_helper_api_request_args', 'wp_kama_woocommerce_helper_api_request_args_filter', 10, 2 );

/**
 * Function for `woocommerce_helper_api_request_args` filter-hook.
 * 
 * @param  $args     
 * @param  $endpoint 
 *
 * @return 
 */
function wp_kama_woocommerce_helper_api_request_args_filter( $args, $endpoint ){

	// filter...
	return $args;
}
$args
-
$endpoint
-

Where the hook is called

WC_Helper_API::request()
woocommerce_helper_api_request_args
woocommerce/includes/admin/helper/class-wc-helper-api.php 64
$args = apply_filters( 'woocommerce_helper_api_request_args', $args, $endpoint );

Where the hook is used in WooCommerce

Usage not found.