WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Admin\API

NavigationFavorites::add_item_permissions_check() public WC 1.0

Check whether a given request has permission to create favorites.

{} It's a method of the class: NavigationFavorites{}

No Hooks.

Return

WP_Error|true|false.

Usage

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

Code of NavigationFavorites::add_item_permissions_check() WC 6.1.0

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