allow_minor_auto_core_updates filter-hookWP 3.7.0

Filters whether to enable minor automatic core updates.

Usage

add_filter( 'allow_minor_auto_core_updates', 'wp_kama_allow_minor_auto_core_updates_filter' );

/**
 * Function for `allow_minor_auto_core_updates` filter-hook.
 * 
 * @param bool $upgrade_minor Whether to enable minor automatic core updates.
 *
 * @return bool
 */
function wp_kama_allow_minor_auto_core_updates_filter( $upgrade_minor ){

	// filter...
	return $upgrade_minor;
}
$upgrade_minor(true|false)
Whether to enable minor automatic core updates.

Changelog

Since 3.7.0 Introduced.

Where the hook is called

Core_Upgrader::should_update_to_version()
allow_minor_auto_core_updates
core_auto_updates_settings()
allow_minor_auto_core_updates
WP_Site_Health_Auto_Updates::test_accepts_minor_updates()
allow_minor_auto_core_updates
wp-admin/includes/class-core-upgrader.php 367
return apply_filters( 'allow_minor_auto_core_updates', $upgrade_minor );
wp-admin/update-core.php 374
$upgrade_minor = apply_filters( 'allow_minor_auto_core_updates', $upgrade_minor );
wp-admin/includes/class-wp-site-health-auto-updates.php 447
if ( ! apply_filters( 'allow_minor_auto_core_updates', true ) ) {

Where the hook is used in WordPress

Usage not found.