Automattic\WooCommerce\Admin\API

NavigationFavorites::delete_item_permissions_check()publicWC 1.0

Check whether a given request has permission to delete notes.

Method of the class: NavigationFavorites{}

No Hooks.

Return

WP_Error|true|false.

Usage

$NavigationFavorites = new NavigationFavorites();
$NavigationFavorites->delete_item_permissions_check( $request );
$request(WP_REST_Request) (required)
Full details about the request.

NavigationFavorites::delete_item_permissions_check() code WC 7.3.0

public function delete_item_permissions_check( $request ) {
	return current_user_can( 'edit_users' );
}