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: 這個過濾器允許你修改在檢查一個新的主題安裝是否應該覆蓋現有主題時使用的比較。

過濾比較表輸出,以便在上載時覆蓋主題包。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
echo apply_filters( 'install_theme_overwrite_comparison', $table, $current_theme_data, $new_theme_data );
echo apply_filters( 'install_theme_overwrite_comparison', $table, $current_theme_data, $new_theme_data );
echo apply_filters( 'install_theme_overwrite_comparison', $table, $current_theme_data, $new_theme_data );

常見問題

FAQs
檢視更多 >