WC_REST_Setting_Options_V2_Controller::update_item_permissions_check()publicWC 9.5.2

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

Метод класса: WC_REST_Setting_Options_V2_Controller{}

Хуков нет.

Возвращает

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

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

$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) (обязательный)
Full data about the request.

Список изменений

С версии 9.5.2 Введена.

Код WC_REST_Setting_Options_V2_Controller::update_item_permissions_check() WC 9.6.1

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