WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
245 | /** |
246 | * Filters the compare table output for overwriting a plugin package on upload. |
247 | * |
248 | * @since 5.5.0 |
249 | * |
250 | * @param string $table The output table with Name, Version, Author, RequiresWP, and RequiresPHP info. |
251 | * @param array $current_plugin_data Array with current plugin data. |
252 | * @param array $new_plugin_data Array with uploaded plugin data. |
253 | */ |
254 | echo apply_filters( 'install_plugin_overwrite_comparison', $table, $current_plugin_data, $new_plugin_data ); |
255 |
|
256 | $install_actions = array(); |
257 | $can_update = true; |
258 |
|
259 | $blocked_message = '<p>' . esc_html__( 'The plugin cannot be updated due to the following:' ) . '</p>'; |
260 | $blocked_message .= '<ul class="ul-disc">'; |
261 |
|
262 | $requires_php = isset( $new_plugin_data['RequiresPHP'] ) ? $new_plugin_data['RequiresPHP'] : null; |
263 | $requires_wp = isset( $new_plugin_data['RequiresWP'] ) ? $new_plugin_data['RequiresWP'] : null; |