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.


Top ↑

Source

File: wp-admin/includes/class-plugin-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.