WP_Site_Health_Auto_Updates::test_filters_automatic_updater_disabled()
Check if automatic updates are disabled by a filter.
Return
(array) The test results.
Source
File: wp-admin/includes/class-wp-site-health-auto-updates.php
public function test_filters_automatic_updater_disabled() { /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */ if ( apply_filters( 'automatic_updater_disabled', false ) ) { return array( 'description' => sprintf( /* translators: %s: Name of the filter used. */ __( 'The %s filter is enabled.' ), '<code>automatic_updater_disabled</code>' ), 'severity' => 'fail', ); } }
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_site_health_auto_updates/test_filters_automatic_updater_disabled