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管理面板中用新安装的主题覆盖现有的主题时,这个动作会启动。

当允许覆盖时,过滤单个主题安装失败后可用的操作链接列表。

$install_actions = apply_filters( 'install_theme_overwrite_actions', $install_actions, $this->api, $new_theme_data );

常见问题

FAQs
查看更多 >