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 |
|---|---|
| 332 | |
| 333 | echo '<tr class="plugin-update-tr"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange"><div class="update-message">'; |
| 334 | if ( ! current_user_can('update_themes') ) |
| 335 | printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r->new_version ); |
| 336 | else if ( empty( $r['package'] ) ) |
| 337 | printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this theme.</em>'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'] ); |
| 338 | else |
| 339 | printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a> or <a href="%5$s">update now</a>.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'], wp_nonce_url( self_admin_url('update.php?action=upgrade-theme&theme=') . $theme_key, 'upgrade-theme_' . $theme_key) ); |
| 340 | |
| 341 | do_action( "in_theme_update_message-$theme_key", $theme, $r ); |
| 342 | |
| 343 | echo '</div></td></tr>'; |
| 344 | } |
| 345 | |
| 346 | function maintenance_nag() { |
| 347 | include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version |
| 348 | global $upgrading; |
| 349 | $nag = isset( $upgrading ); |
| 350 | if ( ! $nag ) { |