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.
Метод класса: WP_REST_Global_Styles_Controller{}
Хуков нет.
Возвращает
true|WP_Error. True if the request has read access for the item, WP_Error object otherwise.
Использование
$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) (обязательный)
- Full details about the request.
Список изменений
| С версии 6.0.0 | Введена. |
| С версии 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 WP 6.8.3
public function get_theme_items_permissions_check( $request ) {
return $this->get_theme_item_permissions_check( $request );
}