translations_api_result

過濾鉤子
apply_filters( 'translations_api_result', $res, $type, $args )
引數
  • (array|WP_Error) $res Response as an associative array or WP_Error.
    Required:
  • (string) $type The type of translations being requested.
    Required:
  • (object) $args Translation API arguments.
    Required:
定義位置
相關勾子
translations_apiplugins_api_resultthemes_api_resultapplication_password_is_api_requestplugins_api_args
相關方法
translations_apilist_translation_updateswp_load_translations_earlywp_get_translation_updates_transition_post_statustranslate_user_role
引入
4.0.0
棄用
-

translations_api_result – 這是一個WordPress過濾器,允許你修改對WordPress翻譯API的呼叫結果。translations_api_result過濾器是在剛剛收到API呼叫的結果後應用的,它可以用來以各種方式修改結果,例如刪除某些翻譯檔案或新增額外的翻譯資料。

過濾翻譯安裝API的響應結果。

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

常見問題

FAQs
檢視更多 >