Switch language

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




get_clean_basedomain [ WordPress Function ]

get_clean_basedomain ( No parameters )
Returns:
  • (string) Base domain.
Defined at:



Get base domain of network.

Source


<?php
function get_clean_basedomain() {
    if ( 
$existing_domain network_domain_check() )
        return 
$existing_domain;
    
$domain preg_replace'|https?://|'''get_option'siteurl' ) );
    if ( 
$slash strpos$domain'/' ) )
        
$domain substr$domain0$slash );
    return 
$domain;
}
?>

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