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