Action hook 'wp_maybe_auto_update'

in WP Core File wp-includes/update.php at line 304

View Source

wp_maybe_auto_update

Action Hook
Description
Fires during wp_cron, starting the auto-update process.

Hook Information

File Location wp-includes/update.php View on GitHub
Hook Type Action
Line Number 304

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into wp_maybe_auto_update
add_action('wp_maybe_auto_update', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-includes/update.php:304 - How this hook is used in WordPress core
<?php
 299  		/**
 300  		 * Fires during wp_cron, starting the auto-update process.
 301  		 *
 302  		 * @since 3.9.0
 303  		 */
 304  		do_action( 'wp_maybe_auto_update' );
 305  	}
 306  }
 307  
 308  /**
 309   * Checks for available updates to plugins based on the latest versions hosted on WordPress.org.

PHP Documentation

<?php
/**
		 * Fires during wp_cron, starting the auto-update process.
		 *
		 * @since 3.9.0
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-includes/update.php
Related Hooks

Related hooks will be displayed here in future updates.