allow_minor_auto_core_updates
Filters whether to enable minor automatic core updates.
Description
Parameters (1)
- 0. $upgrade_minor (bool)
- Whether to enable minor automatic core updates.
Usage
- To run the hook, copy the example below.
- $upgrade_minor = apply_filters( 'allow_minor_auto_core_updates', $upgrade_minor );
- if ( !empty( $upgrade_minor ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the allow_minor_auto_core_updates callback
- function filter_allow_minor_auto_core_updates( $upgrade_minor ) {
- // make filter magic happen here...
- return $upgrade_minor;
- };
- // add the filter
- add_filter( 'allow_minor_auto_core_updates', 'filter_allow_minor_auto_core_updates', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'allow_minor_auto_core_updates', 'filter_allow_minor_auto_core_updates', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /wp-admin/includes/class-core-upgrader.php
- return apply_filters( 'allow_minor_auto_core_updates', $upgrade_minor );