Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: allow_minor_auto_core_updates

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
347
348      // Is the UI overridden by a plugin using the `allow_major_auto_core_updates` filter?
349      if ( has_filter( 'allow_major_auto_core_updates' ) ) {
350           $can_set_update_option = false;
351      }
352
353      /** This filter is documented in wp-admin/includes/class-core-upgrader.php */
354      $upgrade_dev = apply_filters( 'allow_dev_auto_core_updates', $upgrade_dev );
355      /** This filter is documented in wp-admin/includes/class-core-upgrader.php */
356      $upgrade_minor = apply_filters( 'allow_minor_auto_core_updates', $upgrade_minor );
357      /** This filter is documented in wp-admin/includes/class-core-upgrader.php */
358      $upgrade_major = apply_filters( 'allow_major_auto_core_updates', $upgrade_major );
359
360      $auto_update_settings = array(
361           'dev'   => $upgrade_dev,
362           'minor' => $upgrade_minor,
363           'major' => $upgrade_major,
364      );
365