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
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2026-01-29 15:09:50

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: