update_feedback
This filter is documented in wp-admin/includes/update-core.php.
Description
Parameters (1)
- 0. $result (unknown)
- The result.
Usage
- To run the hook, copy the example below.
- $result = apply_filters( 'update_feedback', $result );
- if ( !empty( $result ) ) {
- // 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( $result ) {
- // make filter magic happen here...
- return $result;
- };
- // 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 (13)
The filter is defined in the following location(s).
- /wp-admin/includes/class-core-upgrader.php
- apply_filters( 'update_feedback', $result );
- apply_filters( 'update_feedback', $this->strings['start_rollback'] );
- /wp-admin/includes/class-wp-automatic-updater.php
- add_filter( 'update_feedback', array( $skin, 'feedback' ) );
- /wp-admin/includes/deprecated.php
- add_filter('update_feedback', $feedback);
- add_filter('update_feedback', $feedback);
- add_filter('update_feedback', $feedback);
- /wp-admin/includes/update-core.php
- apply_filters( 'update_feedback', __( 'Verifying the unpacked files…' ) );
- apply_filters( 'update_feedback', __( 'Preparing to install the latest version…' ) );
- apply_filters( 'update_feedback', __( 'Enabling Maintenance mode…' ) );
- apply_filters( 'update_feedback', __( 'Copying the required files…' ) );
- apply_filters( 'update_feedback', __( 'Disabling Maintenance mode…' ) );
- apply_filters( 'update_feedback', __( 'Upgrading database…' ) );
- /wp-admin/update-core.php
- add_filter( 'update_feedback', 'show_message' );