Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_blog_status [ WordPress Function ]

get_blog_status ( $id, $pref )
Parameters:
  • (int) $id The blog id
  • (string) $pref A field name
Returns:
  • (bool) $value
Defined at:



Get a blog details field.

Source


<?php
function get_blog_status$id$pref ) {
    global 
$wpdb;

    
$details get_blog_details$idfalse );
    if ( 
$details )
        return 
$details->$pref;

    return 
$wpdb->get_var$wpdb->prepare("SELECT %s FROM {$wpdb->blogs} WHERE blog_id = %d"$pref$id) );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics