woocommerce_api_jsonp_enabled filter-hookWC 1.0

Usage

add_filter( 'woocommerce_api_jsonp_enabled', 'wp_kama_woocommerce_api_jsonp_enabled_filter' );

/**
 * Function for `woocommerce_api_jsonp_enabled` filter-hook.
 * 
 * @param  $true 
 *
 * @return 
 */
function wp_kama_woocommerce_api_jsonp_enabled_filter( $true ){

	// filter...
	return $true;
}
$true
-

Where the hook is called

WC_API_JSON_Handler::generate_response()
woocommerce_api_jsonp_enabled
woocommerce/includes/legacy/api/v1/class-wc-api-json-handler.php 53
if ( ! apply_filters( 'woocommerce_api_jsonp_enabled', true ) ) {
woocommerce/includes/legacy/api/v3/class-wc-api-json-handler.php 52
if ( ! apply_filters( 'woocommerce_api_jsonp_enabled', true ) ) {
woocommerce/includes/legacy/api/v2/class-wc-api-json-handler.php 52
if ( ! apply_filters( 'woocommerce_api_jsonp_enabled', true ) ) {

Where the hook is used in WooCommerce

Usage not found.