WC_REST_Setting_Options_V2_Controller::update_item_permissions_checkpublicWC 9.5.2

Makes sure the current user has access to WRITE the settings APIs.

Method of the class: WC_REST_Setting_Options_V2_Controller{}

No Hooks.

Returns

WP_Error|true|false. True if the request has permission, otherwise false.

Usage

$WC_REST_Setting_Options_V2_Controller = new WC_REST_Setting_Options_V2_Controller();
$WC_REST_Setting_Options_V2_Controller->update_item_permissions_check( $request );
$request(WP_REST_Request) (required)
Full data about the request.

Changelog

Since 9.5.2 Introduced.

WC_REST_Setting_Options_V2_Controller::update_item_permissions_check() code WC 10.3.6

public function update_item_permissions_check( $request ) {
	return $this->update_items_permissions_check( $request ); // We check for manager permission for all setting.
}