update_feedback filter-hookWP 2.5.0

Filters feedback messages displayed during the core update process.

The filter is first evaluated after the zip file for the latest version has been downloaded and unzipped. It is evaluated five more times during the process:

  1. Before WordPress begins the core upgrade process.
  2. Before Maintenance Mode is enabled.
  3. Before WordPress begins copying over the necessary files.
  4. Before Maintenance Mode is disabled.
  5. Before the database is upgraded.

Usage

add_filter( 'update_feedback', 'wp_kama_update_feedback_filter' );

/**
 * Function for `update_feedback` filter-hook.
 * 
 * @param string $feedback The core update feedback messages.
 *
 * @return string
 */
function wp_kama_update_feedback_filter( $feedback ){

	// filter...
	return $feedback;
}
$feedback(string)
The core update feedback messages.

Changelog

Since 2.5.0 Introduced.

Where the hook is called

update_core()
update_feedback
Core_Upgrader::upgrade()
update_feedback
wp-admin/includes/update-core.php 965
apply_filters( 'update_feedback', __( 'Verifying the unpacked files…' ) );
wp-admin/includes/update-core.php 1102
apply_filters( 'update_feedback', __( 'Preparing to install the latest version…' ) );
wp-admin/includes/update-core.php 1179
apply_filters( 'update_feedback', __( 'Enabling Maintenance mode…' ) );
wp-admin/includes/update-core.php 1188
apply_filters( 'update_feedback', __( 'Copying the required files…' ) );
wp-admin/includes/update-core.php 1315
apply_filters( 'update_feedback', __( 'Disabling Maintenance mode…' ) );
wp-admin/includes/update-core.php 1425
apply_filters( 'update_feedback', __( 'Upgrading database…' ) );
wp-admin/includes/class-core-upgrader.php 131
apply_filters( 'update_feedback', $download->get_error_message() );
wp-admin/includes/class-core-upgrader.php 195
apply_filters( 'update_feedback', $result );
wp-admin/includes/class-core-upgrader.php 198
apply_filters( 'update_feedback', $this->strings['start_rollback'] );

Where the hook is used in WordPress

wp-admin/includes/class-wp-automatic-updater.php 312
add_filter( 'update_feedback', array( $skin, 'feedback' ) );
wp-admin/includes/deprecated.php 1161
add_filter('update_feedback', $feedback);
wp-admin/includes/deprecated.php 1184
add_filter('update_feedback', $feedback);
wp-admin/includes/deprecated.php 1206
add_filter('update_feedback', $feedback);
wp-admin/update-core.php 881
add_filter( 'update_feedback', 'show_message' );