wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_clean_basedomain › WordPress Function

Da3.0.0
Deprecaton/a
get_clean_basedomain ( Nessun parametro )
Ritorna:
  • (string) Base domain.
Definito a:
Codex:

Get base domain of network.



Sorgenti

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;
}