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
檢視更多 >