install_theme_overwrite_comparison WordPress Filter Hook

The install_theme_overwrite_comparison hook is used to compare the themes installed on two different sites. If the two themes are the same, then the hook will return true. If the two themes are different, the hook will return false.

apply_filters( 'install_theme_overwrite_comparison', string $table, WP_Theme $current_theme_data, array $new_theme_data ) #

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


Parameters

$table

(string)The output table with Name, Version, Author, RequiresWP, and RequiresPHP info.

$current_theme_data

(WP_Theme)Active theme data.

$new_theme_data

(array)Array with uploaded theme data.


Top ↑

Source

File: wp-admin/includes/class-theme-installer-skin.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.