wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
get_clean_basedomain › WordPress Function
Seit3.0.0
Veraltetn/v
› get_clean_basedomain ( Keine Parameter )
| Gibt zurück: |
|
| Definiert in: |
|
| Codex: |
Get base domain of network.
Ähnliche Funktionen: get_admin_users_for_domain, get_calendar, get_blogaddress_by_domain, get_sample_permalink, get_the_permalink
Quellcode
function get_clean_basedomain() {
$existing_domain = network_domain_check();
if ( $existing_domain ) {
return $existing_domain;
}
$domain = preg_replace( '|https?://|', '', get_option( 'siteurl' ) );
$slash = strpos( $domain, '/' );
if ( $slash ) {
$domain = substr( $domain, 0, $slash );
}
return $domain;
}