Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_maybe_auto_update

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
328      }
329
330      // Trigger background updates if running non-interactively, and we weren't called from the update handler.
331      if ( $doing_cron && ! doing_action( 'wp_maybe_auto_update' ) ) {
332           /**
333            * Fires during wp_cron, starting the auto-update process.
334            *
335            * @since 3.9.0
336            */
337           do_action( 'wp_maybe_auto_update' );
338      }
339 }
340
341 /**
342  * Checks for available updates to plugins based on the latest versions hosted on WordPress.org.
343  *
344  * Despite its name this function does not actually perform any updates, it only checks for available updates.
345  *
346  * A list of all plugins installed is sent to api.wordpress.org, along with the site locale.