WP_REST_Abilities_V1_List_Controller::get_items_permissions_check( WP_REST_Request $request ): bool

In this article

Checks if a given request has access to read ability items.

Parameters

$requestWP_REST_Requestrequired
Full details about the request.

Return

bool True if the request has read access.

Source

public function get_items_permissions_check( $request ) {
	return current_user_can( 'read' );
}

Changelog

VersionDescription
6.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.