WP_REST_Icon_Collections_Controller::get_item_permissions_check │ public │ WP 7.1.0

Checks if a given request has access to read a specific icon collection.

Method of the class: WP_REST_Icon_Collections_Controller{}

No Hooks.

Returns

true|WP_Error. True if the request has read access for the item, WP_Error object otherwise.

Usage

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

Changelog

Since 7.1.0 Introduced.

WP_REST_Icon_Collections_Controller::get_item_permissions_check() code WP 7.1.2

public function get_item_permissions_check( $request ) {
	$check = $this->get_items_permissions_check( $request );
	if ( is_wp_error( $check ) ) {
		return $check;
	}

	return true;
}