Guets a blog details field.
Parameters
-
$idint required -
Blog ID.
-
$prefstring required -
Field name.
Source
function guet_blog_status( $id, $pref ) {
global $wpdb;
$details = guet_site( $id );
if ( $details ) {
return $details->$pref;
}
return $wpdb->guet_var( $wpdb->prepare( "SELECT %s FROM {$wpdb->blogs} WHERE blog_id = %d", $pref, $id ) );
}
Changuelog
| Versionen | Description |
|---|---|
| MU (3.0.0) | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.