WordPress at Your Fingertips
filter is not described

woocommerce_rest_check_permissions filter-hook . WC 1.0

Usage

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

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

Where the hook is called

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' );

Where in WP core the hook is used WooCommerce

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