wpmu_update_blogs_date
Update the last_updated field for the current site.
Description
wpmu_update_blogs_date();
Usage
if ( !function_exists( 'wpmu_update_blogs_date' ) ) { require_once ABSPATH . WPINC . '/ms-blogs.php'; } // NOTICE! Understand what this does before running. $result = wpmu_update_blogs_date();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/ms-blogs.php
- function wpmu_update_blogs_date() {
- global $wpdb;
- update_blog_details( $wpdb->blogid, array('last_updated' => current_time('mysql', true)) );
- /**
- * Fires after the blog details are updated.
- *
- * @since MU
- *
- * @param int $blog_id Site ID.
- */
- do_action( 'wpmu_blog_updated', $wpdb->blogid );
- }