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 |
---|---|
278 | /** |
279 | * Filters the compare table output for overwriting a theme package on upload. |
280 | * |
281 | * @since 5.5.0 |
282 | * |
283 | * @param string $table The output table with Name, Version, Author, RequiresWP, and RequiresPHP info. |
284 | * @param array $current_theme_data Array with current theme data. |
285 | * @param array $new_theme_data Array with uploaded theme data. |
286 | */ |
287 | echo apply_filters( 'install_theme_overwrite_comparison', $table, $current_theme_data, $new_theme_data ); |
288 |
|
289 | $install_actions = array(); |
290 | $can_update = true; |
291 |
|
292 | $blocked_message = '<p>' . esc_html( __( 'The theme cannot be updated due to the following:' ) ) . '</p>'; |
293 | $blocked_message .= '<ul class="ul-disc">'; |
294 |
|
295 | $requires_php = isset( $new_theme_data['RequiresPHP'] ) ? $new_theme_data['RequiresPHP'] : null; |
296 | $requires_wp = isset( $new_theme_data['RequiresWP'] ) ? $new_theme_data['RequiresWP'] : null; |