plugins_api_result

過濾鉤子
apply_filters( 'plugins_api_result', $res, $action, $args )
引數
  • (object|WP_Error) $res Response object or WP_Error.
    Required:
  • (string) $action The type of information being requested from the Plugin Installation API.
    Required:
  • (object) $args Plugin API arguments.
    Required:
定義位置
相關勾子
plugins_api_argsplugins_apitranslations_api_resultthemes_api_resultplugins_url
相關方法
plugins_apiplugins_urlplugin_dir_urlplugin_dir_pathadd_plugins_pageget_plugin_files
引入
2.7.0
棄用
-

plugins_api_result 是一個過濾鉤,允許開發者修改”plugins_api”函式的結果。plugins_api_result”過濾鉤可以用來修改”plugins_api”函式返回的資訊,例如,新增或刪除資訊,或以特定方式格式化資訊。

過濾外掛安裝API的響應結果。

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

常見問題

FAQs
檢視更多 >