bp_core_get_root_domain()
Return the domain for the root blog.
Description
Return
(string) The domain URL for the blog.
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 BuddyPress 1.0.1 * * @param string $domain The domain URL for the blog. */ return apply_filters( 'bp_core_get_root_domain', $domain ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.