themes_api_result

過濾鉤子
apply_filters( 'themes_api_result', $res, $action, $args )
引數
  • (array|stdClass|WP_Error) $res WordPress.org Themes API response.
    Required:
  • (string) $action Requested action. Likely values are 'theme_information', 'feature_list', or 'query_themes'.
    Required:
  • (stdClass) $args Arguments used to query for installer pages from the WordPress.org Themes API.
    Required:
定義位置
相關勾子
themes_api_argsthemes_apiplugins_api_resultoembed_resulttranslations_api_result
相關方法
themes_apiget_theme_feature_listthe_postinstall_themes_feature_listwp_filter_oembed_resultwp_theme_update_rows
引入
2.8.0
棄用
-

themes_api_result是一個WordPress的過濾器鉤子,它允許開發者修改對WordPress.org Theme API的呼叫結果。這可以用來向結果新增額外的資料,或者根據請求的引數以某種方式改變結果。

過濾返回的WordPress.org Themes API響應。

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

常見問題

FAQs
檢視更多 >