Filter hook 'allow_minor_auto_core_updates'

in WP Core File wp-admin/includes/class-wp-site-health-auto-updates.php at line 468

View Source

allow_minor_auto_core_updates

Filter Hook
Description
Checks if the site supports automatic minor updates. 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 468

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into allow_minor_auto_core_updates
add_filter('allow_minor_auto_core_updates', '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:468 - How this hook is used in WordPress core
<?php
 463  				'severity'    => 'fail',
 464  			);
 465  		}
 466  
 467  		/** This filter is documented in wp-admin/includes/class-core-upgrader.php */
 468  		if ( ! apply_filters( 'allow_minor_auto_core_updates', true ) ) {
 469  			return array(
 470  				'description' => sprintf(
 471  					/* translators: %s: Name of the filter used. */
 472  					__( 'WordPress security and maintenance releases are blocked by the %s filter.' ),
 473  					'<code>allow_minor_auto_core_updates</code>'

PHP Documentation

<?php
/**
	 * Checks if the site supports automatic minor updates.
	 *
	 * @since 5.2.0
	 *
	 * @return array|null The test results if minor updates are blocked,
	 *                    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.