apply_filters( 'automatic_updater_disabled', bool $disabled )
- Since
- 3.7.0
Filters whether to entirely disable background updates.
Description
There are more fine-grained filters and controls for selective disabling.
This filter parallels the AUTOMATIC_UPDATER_DISABLED constant in name.
This also disables update notification emails. That may change in the future.
Compatibility
- WordPress
- since 3.7.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
$disabledbool- Whether the updater should be disabled.
Where this hook fires · 2
wp-admin/includes/class-wp-automatic-updater.php:58WP_Automatic_Updater::is_disabled()wp-admin/includes/class-wp-site-health-auto-updates.php:118WP_Site_Health_Auto_Updates::test_filters_automatic_updater_disabled()
Source code
* This also disables update notification emails. That may change in the future. * * @since 3.7.0 * * @param bool $disabled Whether the updater should be disabled. */ return apply_filters( 'automatic_updater_disabled', $disabled ); } /** * Checks whether access to a given directory is allowed. * * This is used when detecting version control checkouts. Takes into accountChangelog
Introduced in 3.7.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 6.7.7 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.