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 ]

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