WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

woocommerce_rest_check_permissions хук-фильтр . WC 1.0

Использование

add_filter( 'woocommerce_rest_check_permissions', 'filter_function_name_3182', 10, 4 );
function filter_function_name_3182( $permission, $context, $object_id, $post_type ){
	// filter...

	return $permission;
}
$permission
-
$context
-
$object_id
-
$post_type
-

Где вызывается хук

wc_rest_check_post_permissions()
woocommerce_rest_check_permissions
wc_rest_check_user_permissions()
woocommerce_rest_check_permissions
wc_rest_check_product_term_permissions()
woocommerce_rest_check_permissions
wc_rest_check_manager_permissions()
woocommerce_rest_check_permissions
wc_rest_check_product_reviews_permissions()
woocommerce_rest_check_permissions
woocommerce/includes/wc-rest-functions.php 243
return apply_filters( 'woocommerce_rest_check_permissions', $permission, $context, $object_id, $post_type );
woocommerce/includes/wc-rest-functions.php 281
return apply_filters( 'woocommerce_rest_check_permissions', $permission, $context, $object_id, 'user' );
woocommerce/includes/wc-rest-functions.php 306
return apply_filters( 'woocommerce_rest_check_permissions', $permission, $context, $object_id, $taxonomy );
woocommerce/includes/wc-rest-functions.php 330
return apply_filters( 'woocommerce_rest_check_permissions', $permission, $context, 0, $object );
woocommerce/includes/wc-rest-functions.php 355
return apply_filters( 'woocommerce_rest_check_permissions', $permission, $context, $object_id, 'product_review' );

Где используется хук в ядре WC

packages/woocommerce-admin/src/ReportCSVExporter.php 208
add_filter( 'woocommerce_rest_check_permissions', '__return_true' );
packages/woocommerce-admin/src/ReportCSVExporter.php 211
remove_filter( 'woocommerce_rest_check_permissions', '__return_true' );