install_theme_overwrite_comparison filter-hook . WP 5.5.0
Filters the compare table output for overwriting a theme package on upload.
Usage
add_filter( 'install_theme_overwrite_comparison', 'filter_function_name_7481', 10, 3 ); function filter_function_name_7481( $table, $current_theme_data, $new_theme_data ){ // filter... return $table; }
- $table(string)
- The output table with Name, Version, Author, RequiresWP, and RequiresPHP info.
- $current_theme_data(array)
- Array with current theme data.
- $new_theme_data(array)
- Array with uploaded theme data.
Changelog
Since 5.5.0 | Introduced. |
Where the hook is called
install_theme_overwrite_comparison
wp-admin/includes/class-theme-installer-skin.php 289
echo apply_filters( 'install_theme_overwrite_comparison', $table, $current_theme_data, $new_theme_data );