WP_REST_Settings_Controller::get_item_permissions_check( WP_REST_Request $request ): bool

In this article

Checks if a given request has access to read and manage settings.

Parameters

$requestWP_REST_Requestrequired
Full details about the request.

Return

bool True if the request has read access for the item, otherwise false.

Source

public function get_item_permissions_check( $request ) {
	return current_user_can( 'manage_options' );
}

Changelog

VersionDescription
4.7.0Introduced.

User Contributed Notes

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