bp_core_get_root_domain()

Return the domain for the root blog.


Description Description

Eg: http://example.com OR https://example.com


Return Return

(string) The domain URL for the blog.


Top ↑

Source Source

File: bp-core/bp-core-functions.php

function bp_core_get_root_domain() {

	$domain = get_home_url( bp_get_root_blog_id() );

	/**
	 * Filters the domain for the root blog.
	 *
	 * @since 1.0.1
	 *
	 * @param string $domain The domain URL for the blog.
	 */
	return apply_filters( 'bp_core_get_root_domain', $domain );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.