install_theme_overwrite_actions

過濾鉤子
apply_filters( 'install_theme_overwrite_actions', $install_actions, $this->api, $new_theme_data )
引數
  • (string[]) $install_actions Array of theme action links.
    Required:
  • (object) $api Object containing WordPress.org API theme data.
    Required:
  • (array) $new_theme_data Array with uploaded theme data.
    Required:
定義位置
相關勾子
install_theme_overwrite_comparisoninstall_theme_complete_actionsinstall_plugin_overwrite_actionsinstall_plugin_overwrite_comparisonupdate_theme_complete_actions
相關方法
install_theme_informationinstall_themes_feature_listfavorite_actionssearch_theme_directoriesremove_actionregister_theme_directory
引入
5.5.0
棄用
-

install_theme_overwrite_actions: 當使用者試圖在WordPress管理面板中用新安裝的主題覆蓋現有的主題時,這個動作會啟動。

當允許覆蓋時,過濾單個主題安裝失敗後可用的操作連結列表。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$install_actions = apply_filters( 'install_theme_overwrite_actions', $install_actions, $this->api, $new_theme_data );
$install_actions = apply_filters( 'install_theme_overwrite_actions', $install_actions, $this->api, $new_theme_data );
$install_actions = apply_filters( 'install_theme_overwrite_actions', $install_actions, $this->api, $new_theme_data );

常見問題

FAQs
檢視更多 >