wpseek.com
A WordPress-centric search engine for devs and theme authors
update_blog_details › WordPress Function
Since
Deprecatedn/a
› update_blog_details ( $blog_id, $details = array() )
Parameters: (2) |
|
Returns: |
|
Defined at: |
|
Codex: | |
Change Log: |
|
Updates the details for a blog and the blogs table for a given blog ID.
Related Functions: update_blog_status, get_blog_details, update_blog_option, refresh_blog_details, update_blog_public
Source
function update_blog_details( $blog_id, $details = array() ) { global $wpdb; if ( empty( $details ) ) { return false; } if ( is_object( $details ) ) { $details = get_object_vars( $details ); } $site = wp_update_site( $blog_id, $details ); if ( is_wp_error( $site ) ) { return false; } return true; }