apply_filters( 'update_feedback', string $feedback )
- Since
- 2.5.0
Filters feedback messages displayed during the core update process.
Description
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:
- Before WordPress begins the core upgrade process.
- Before Maintenance Mode is enabled.
- Before WordPress begins copying over the necessary files.
- Before Maintenance Mode is disabled.
- Before the database is upgraded.
Compatibility
- WordPress
- since 2.5.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$feedbackstring- The core update feedback messages.
Where this hook fires · 9
wp-admin/includes/class-core-upgrader.php:137Core_Upgrader::upgrade()wp-admin/includes/class-core-upgrader.php:201Core_Upgrader::upgrade()wp-admin/includes/class-core-upgrader.php:204Core_Upgrader::upgrade()wp-admin/includes/update-core.php:1129update_core()wp-admin/includes/update-core.php:1283update_core()wp-admin/includes/update-core.php:1367update_core()wp-admin/includes/update-core.php:1376update_core()wp-admin/includes/update-core.php:1516update_core()wp-admin/includes/update-core.php:1631update_core()
Source code
* 5. Before the database is upgraded. * * @since 2.5.0 * * @param string $feedback The core update feedback messages. */ apply_filters( 'update_feedback', __( 'Verifying the unpacked files…' ) ); // Confidence check the unzipped distribution. $distro = ''; $roots = array( '/wordpress/', '/wordpress-mu/' ); foreach ( $roots as $root ) {Changelog
Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.