install_plugin_overwrite_comparison WordPress Filter Hook
The install_plugin_overwrite_comparison Wordpress hook is used to compare the installed plugin version with the version available on the WordPress.org plugin repository. If a newer version is available, the user is prompted to update the plugin.
apply_filters( 'install_plugin_overwrite_comparison', string $table , array $current_plugin_data , array $new_plugin_data ) #
Filters the compare table output for overwriting a plugin package on upload.
Parameters
- $table
(string)The output table with Name, Version, Author, RequiresWP, and RequiresPHP info.
- $current_plugin_data
(array)Array with current plugin data.
- $new_plugin_data
(array)Array with uploaded plugin data.
Source
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |