install_theme_overwrite_comparison

过滤钩子
apply_filters( 'install_theme_overwrite_comparison', $table, $current_theme_data, $new_theme_data )
参数
  • (string) $table The output table with Name, Version, Author, RequiresWP, and RequiresPHP info.
    Required:
  • (WP_Theme) $current_theme_data Active theme data.
    Required:
  • (array) $new_theme_data Array with uploaded theme data.
    Required:
定义位置
相关勾子
install_theme_overwrite_actionsinstall_plugin_overwrite_comparisoninstall_plugin_overwrite_actionsinstall_theme_complete_actionsinstall_themes_table_header
相关方法
install_theme_informationinstall_themes_feature_listinstall_theme_search_forminstall_themes_dashboardload_theme_textdomaininstall_themes_upload
引入
5.5.0
弃用
-

install_theme_overwrite_comparison: 这个过滤器允许你修改在检查一个新的主题安装是否应该覆盖现有主题时使用的比较。

过滤比较表输出,以便在上载时覆盖主题包。

echo apply_filters( 'install_theme_overwrite_comparison', $table, $current_theme_data, $new_theme_data );

常见问题

FAQs
查看更多 >