rest_prepare_theme
apply_filters( ‘rest_prepare_theme’, WP_REST_Response $response , WP_Theme $theme , WP_REST_Request $request )
过滤器::过滤从REST API返回的主题数据。Filter Hook: Filters theme data returned from the REST API.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$response | (WP_REST_Response) | 响应对象。 |
$theme | (WP_Theme) | 用于创建响应的主题对象。 |
$request | (WP_REST_Request) | 请求对象。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.0.0 | wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php:175 | 1 | 0 |
总计 0 评论