themes_api_args
云策文档标注
概述
themes_api_args 过滤器用于修改查询 WordPress.org 主题 API 安装页面时使用的参数。此过滤器必须返回一个对象。
关键要点
- 过滤器名称:themes_api_args
- 用途:过滤查询 WordPress.org 主题 API 安装页面时的参数
- 参数:$args(对象,查询参数)和 $action(字符串,请求操作,如 'theme_information'、'feature_list' 或 'query_themes')
- 要求:必须返回一个对象
- 相关函数:themes_api()
- 引入版本:WordPress 2.8.0
原文内容
Filters arguments used to query for installer pages from the WordPress.org Themes API.
Description
Important: An object MUST be returned to this filter.
Parameters
$argsobject-
Arguments used to query for installer pages from the WordPress.org Themes API.
$actionstring-
Requested action. Likely values are
'theme_information','feature_list', or'query_themes'.
Source
$args = apply_filters( 'themes_api_args', $args, $action );
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |