Switch language

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




network_domain_check [ WordPress Function ]

network_domain_check ( No parameters )
Returns:
  • (Whether) a network exists.
Defined at:



Check for an existing network.

Source


<?php
function network_domain_check() {
    global 
$wpdb;
    if ( 
$wpdb->get_var"SHOW TABLES LIKE '$wpdb->site'" ) )
        return 
$wpdb->get_var"SELECT domain FROM $wpdb->site ORDER BY id ASC LIMIT 1" );
    return 
false;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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