Filter hook 'allow_dev_auto_core_updates'

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

View Source

allow_dev_auto_core_updates

Filter Hook
Description
Checks if the install is using a development branch and can use nightly packages. False if it isn't a development version. 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 433

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into allow_dev_auto_core_updates
add_filter('allow_dev_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:433 - How this hook is used in WordPress core
<?php
 428  				'severity'    => 'fail',
 429  			);
 430  		}
 431  
 432  		/** This filter is documented in wp-admin/includes/class-core-upgrader.php */
 433  		if ( ! apply_filters( 'allow_dev_auto_core_updates', $wp_version ) ) {
 434  			return array(
 435  				'description' => sprintf(
 436  					/* translators: %s: Name of the filter used. */
 437  					__( 'WordPress development updates are blocked by the %s filter.' ),
 438  					'<code>allow_dev_auto_core_updates</code>'

PHP Documentation

<?php
/**
	 * Checks if the install is using a development branch and can use nightly packages.
	 *
	 * @since 5.2.0
	 *
	 * @return array|false|null The test results if development updates are blocked.
	 *                          False if it isn't a development version. 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.