WordPress at a glance
filter is not described

install_theme_overwrite_comparison filter-hook . WP 5.5.0

Filters the compare table output for overwriting a theme package on upload.


add_filter( 'install_theme_overwrite_comparison', 'filter_function_name_1941', 10, 3 );
function filter_function_name_1941( $table, $current_theme_data, $new_theme_data ){
	// filter...

	return $table;
The output table with Name, Version, Author, RequiresWP, and RequiresPHP info.
Array with current theme data.
Array with uploaded theme data.

Список изменений

С версии 5.5.0 Введена.

Где вызывается хук

wp-admin/includes/class-theme-installer-skin.php 289
echo apply_filters( 'install_theme_overwrite_comparison', $table, $current_theme_data, $new_theme_data );

Где используется хук в ядре WP

Использование не найдено.