allow_major_auto_core_updates filter-hookWP 3.7.0

Filters whether to enable major automatic core updates.

Usage

add_filter( 'allow_major_auto_core_updates', 'wp_kama_allow_major_auto_core_updates_filter' );

/**
 * Function for `allow_major_auto_core_updates` filter-hook.
 * 
 * @param bool $upgrade_major Whether to enable major automatic core updates.
 *
 * @return bool
 */
function wp_kama_allow_major_auto_core_updates_filter( $upgrade_major ){

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

Changelog

Since 3.7.0 Introduced.

Where the hook is called

Core_Upgrader::should_update_to_version()
allow_major_auto_core_updates
core_auto_updates_settings()
allow_major_auto_core_updates
wp-admin/includes/class-core-upgrader.php 382
return apply_filters( 'allow_major_auto_core_updates', $upgrade_major );
wp-admin/update-core.php 387
$upgrade_major = apply_filters( 'allow_major_auto_core_updates', $upgrade_major );

Where the hook is used in WordPress

Usage not found.