themes_api_args

过滤钩子
apply_filters( 'themes_api_args', $args, $action )
参数
  • (object) $args Arguments used to query for installer pages from the WordPress.org Themes API.
    Required:
  • (string) $action Requested action. Likely values are 'theme_information', 'feature_list', or 'query_themes'.
    Required:
定义位置
相关勾子
themes_api_resultthemes_apiplugins_api_argstheme_file_uritheme_action_links
相关方法
themes_apiadd_theme_pagethe_tagsis_theme_pausedget_cli_argswp_theme_update_rows
引入
2.8.0
弃用
-

themes_api_args是一个WordPress的过滤钩,它允许开发者修改调用WordPress.org Theme API时使用的参数。这对于在请求中添加额外的信息或改变用于请求的参数很有用。

过滤器参数用于从WordPress.org Themes API查询安装程序页面。

重要的是:必须向这个过滤器返回一个对象。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$args = apply_filters( 'themes_api_args', $args, $action );
$args = apply_filters( 'themes_api_args', $args, $action );
$args = apply_filters( 'themes_api_args', $args, $action );

常见问题

FAQs
查看更多 >
闪电伯伯

(工作日 10:00 - 18:30 为您服务)

2025-11-02 01:19:50

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: