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 |
|---|---|
| 270 | |
| 271 | echo '<tr class="plugin-update-tr"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange"><div class="update-message">'; |
| 272 | if ( ! current_user_can('update_themes') ) |
| 273 | 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 ); |
| 274 | else if ( empty( $r['package'] ) ) |
| 275 | 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'] ); |
| 276 | else |
| 277 | 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) ); |
| 278 | |
| 279 | do_action( "in_theme_update_message-$theme_key", $theme, $r ); |
| 280 | |
| 281 | echo '</div></td></tr>'; |
| 282 | } |
| 283 | |
| 284 | function wp_update_core($current, $feedback = '') { |
| 285 | if ( !empty($feedback) ) |
| 286 | add_filter('update_feedback', $feedback); |
| 287 | |
| 288 | include ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |