woocommerce_api_check_permission filter-hookWC 1.0

Usage

add_filter( 'woocommerce_api_check_permission', 'wp_kama_woocommerce_api_check_permission_filter', 10, 4 );

/**
 * Function for `woocommerce_api_check_permission` filter-hook.
 * 
 * @param  $permission 
 * @param  $context    
 * @param  $post       
 * @param  $post_type  
 *
 * @return 
 */
function wp_kama_woocommerce_api_check_permission_filter( $permission, $context, $post, $post_type ){

	// filter...
	return $permission;
}
$permission
-
$context
-
$post
-
$post_type
-

Where the hook is called

WC_API_Resource::check_permission()
woocommerce/includes/legacy/api/v3/class-wc-api-resource.php 475
return apply_filters( 'woocommerce_api_check_permission', $permission, $context, $post, $post_type );

Where the hook is used in WooCommerce

Usage not found.