wpmu_update_blogs_date

Update the last_updated field for the current site.

Description

wpmu_update_blogs_date(); 

Usage

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

Defined (1)

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

/wp-includes/ms-blogs.php  
  1. function wpmu_update_blogs_date() { 
  2. global $wpdb; 
  3.  
  4. update_blog_details( $wpdb->blogid, array('last_updated' => current_time('mysql', true)) ); 
  5. /** 
  6. * Fires after the blog details are updated. 
  7. * @since MU 
  8. * @param int $blog_id Site ID. 
  9. */ 
  10. do_action( 'wpmu_blog_updated', $wpdb->blogid );