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.
Source
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |