update_feedback
This filter is documented in wp-admin/includes/update-core.php.
Description
Parameters (1)
- 0. $show_message (string) =>
'show_message'
- The show message.
Usage
- To run the hook, copy the example below.
- $show_message = apply_filters( 'update_feedback', $show_message );
- if ( !empty( $show_message ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the update_feedback callback
- function filter_update_feedback( $show_message ) {
- // make filter magic happen here...
- return $show_message;
- };
- // add the filter
- add_filter( 'update_feedback', 'filter_update_feedback', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- 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
- add_filter( 'update_feedback', 'show_message' );
- /wp-admin/includes/deprecated.php
- add_filter('update_feedback', $feedback);
- add_filter('update_feedback', $feedback);
- add_filter('update_feedback', $feedback);
- /wp-admin/includes/class-wp-automatic-updater.php
- add_filter( 'update_feedback', array( $skin, 'feedback' ) );