wpmu_update_blogs_date()
wpmu_update_blogs_date()
更新当前站点的“上次更新”字段。
Update the last_updated field for the current site.
参数(Parameters)
参数 | 类型 | 说明 |
---|
源码(Source)
/** * Update the last_updated field for the current blog. * * @since MU * * @global wpdb $wpdb */ 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 Blog ID. */ do_action( 'wpmu_blog_updated', $wpdb->blogid ); }
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
MU (3.0.0) | wp-includes/ms-blogs.php | 17 | 11 |
wpmu_update_blogs_date() 为WP2原创文章,链接:https://www.wp2.cn/functions/wpmu_update_blogs_date/