WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_REST_Controller::update_item_permissions_check() WP 4.7.0

Checks if a given request has access to update a specific item.

Это метод класса: WP_REST_Controller

Хуков нет.


WP_Error/true/false. True if the request has access to update the item, WP_Error object otherwise.


$WP_REST_Controller = new WP_REST_Controller();
$var = $WP_REST_Controller->update_item_permissions_check( $request );
$request(WP_REST_Request) (обязательный)
Full data about the request.

Код WP REST Controller::update item permissions check: wp-includes/rest-api/endpoints/class-wp-rest-controller.php WP 5.2.2

public function update_item_permissions_check( $request ) {
	/* translators: %s: method name */
	return new WP_Error( 'invalid-method', sprintf( __( "Method '%s' not implemented. Must be overridden in subclass." ), __METHOD__ ), array( 'status' => 405 ) );