WP_REST_Global_Styles_Controller::get_theme_items_permissions_check()
Checks if a given request has access to read a single theme global styles config.
Method of the class: WP_REST_Global_Styles_Controller{}
No Hooks.
Return
true|WP_Error
. True if the request has read access for the item, WP_Error object otherwise.
Usage
$WP_REST_Global_Styles_Controller = new WP_REST_Global_Styles_Controller(); $WP_REST_Global_Styles_Controller->get_theme_items_permissions_check( $request );
- $request(WP_REST_Request) (required)
- Full details about the request.
Changelog
Since 6.0.0 | Introduced. |
Since 6.7.0 | Allow users with edit post capabilities to view theme global styles. |
WP_REST_Global_Styles_Controller::get_theme_items_permissions_check() WP REST Global Styles Controller::get theme items permissions check code WP 6.8
public function get_theme_items_permissions_check( $request ) { return $this->get_theme_item_permissions_check( $request ); }