update_feedback

This filter is documented in wp-admin/includes/update-core.php.

Description

add_filter( 'update_feedback', (string) $show_message ); 

Parameters (1)

0. $show_message (string) => 'show_message'
The show message.

Usage

To run the hook, copy the example below.
  1. $show_message = apply_filters( 'update_feedback', $show_message ); 
  2.  
  3. if ( !empty( $show_message ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the update_feedback callback 
  2. function filter_update_feedback( $show_message ) { 
  3. // make filter magic happen here... 
  4. return $show_message
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'update_feedback', 'filter_update_feedback', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'update_feedback', 'filter_update_feedback', 10, 1 ); 

Defined (5)

The filter is defined in the following location(s).

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