automatic_updater_disabled
Filter HookDescription
Checks if automatic updates are disabled by a filter. or null if the test passed.Hook Information
File Location |
wp-admin/includes/class-wp-site-health-auto-updates.php
View on GitHub
|
Hook Type | Filter |
Line Number | 125 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into automatic_updater_disabled
add_filter('automatic_updater_disabled', 'my_custom_filter');
function my_custom_filter() {
// Your custom filtering logic here
return 'modified_value';
}
Source Code Context
wp-admin/includes/class-wp-site-health-auto-updates.php:125
- How this hook is used in WordPress core
<?php
120 * @return array|null The test results if the {@see 'automatic_updater_disabled'} filter is set,
121 * or null if the test passed.
122 */
123 public function test_filters_automatic_updater_disabled() {
124 /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
125 if ( apply_filters( 'automatic_updater_disabled', false ) ) {
126 return array(
127 'description' => sprintf(
128 /* translators: %s: Name of the filter used. */
129 __( 'The %s filter is enabled.' ),
130 '<code>automatic_updater_disabled</code>'
PHP Documentation
<?php
/**
* Checks if automatic updates are disabled by a filter.
*
* @since 5.2.0
*
* @return array|null The test results if the {@see 'automatic_updater_disabled'} filter is set,
* or null if the test passed.
*/
Quick Info
- Hook Type: Filter
- Parameters: 0
- File: wp-admin/includes/class-wp-site-health-auto-updates.php
Related Hooks
Related hooks will be displayed here in future updates.