wp_maybe_auto_update

Performs WordPress automatic background updates.

Description

wp_maybe_auto_update(); 

Usage

  1. if ( !function_exists( 'wp_maybe_auto_update' ) ) { 
  2. require_once ABSPATH . WPINC . '/update.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_maybe_auto_update(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/update.php  
  1. function wp_maybe_auto_update() { 
  2. include_once( ABSPATH . '/wp-admin/includes/admin.php' ); 
  3. include_once( ABSPATH . '/wp-admin/includes/class-wp-upgrader.php' ); 
  4.  
  5. $upgrader = new WP_Automatic_Updater; 
  6. $upgrader->run();