Contents
bp_get_root_domain()
Return the “root domain”, the URL of the BP root blog.
Description
Return
(string) URL of the BP root blog.
Source
File: bp-core/bp-core-template.php
function bp_get_root_domain() { $bp = buddypress(); if ( ! empty( $bp->root_domain ) ) { $domain = $bp->root_domain; } else { $domain = bp_core_get_root_domain(); $bp->root_domain = $domain; } /** * Filters the "root domain", the URL of the BP root blog. * * @since BuddyPress 1.2.4 * * @param string $domain URL of the BP root blog. */ return apply_filters( 'bp_get_root_domain', $domain ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.1.0 | Introduced. |
Related
Uses
Uses | Description |
---|---|
bp-loader.php: buddypress() |
The main function responsible for returning the one true BuddyBoss Instance to functions everywhere. |
bp-core/bp-core-template.php: bp_get_root_domain |
Filters the “root domain”, the URL of the BP root blog. |
bp-core/bp-core-functions.php: bp_core_get_root_domain() |
Return the domain for the root blog. |
Used By | Description |
---|---|
bp-document/bp-document-template.php: bp_get_document_directory_permalink() |
Return document directory permalink. |
bp-invites/classes/class-bp-rest-invites-endpoint.php: BP_REST_Invites_Endpoint::create_item() |
Create an Invites/Send Invites. |
bp-blogs/classes/class-bp-rest-blogs-endpoint.php: BP_REST_Blogs_Endpoint::get_blog_domain() |
Get blog permalink. |
bp-settings/actions/delete-account.php: bp_settings_action_delete_account() |
Handles the deleting of a user. |
bp-forums/groups.php: BBP_Forums_Group_Extension::edit_redirect_to() |
Redirect to the group admin forum edit screen |
bp-media/bp-media-template.php: bp_get_media_directory_permalink() |
Return media directory permalink. |
bp-blogs/bp-blogs-template.php: bp_get_blog_permalink() | |
bp-blogs/bp-blogs-template.php: bp_get_blogs_directory_permalink() |
Return blog directory permalink. |
bp-groups/bp-groups-template.php: bp_get_groups_directory_permalink() |
Return group directory permalink. |
bp-members/screens/activate.php: bp_core_screen_activation() |
Handle the loading of the Activate screen. |
bp-members/screens/activate.php: bp_members_action_activate_account() |
Catches and processes account activation requests. |
bp-members/bp-members-functions.php: bp_core_get_user_domain() |
Return the domain for the passed user: e.g. http://example.com/members/andy/. |
bp-members/screens/register.php: bp_core_screen_signup() |
Handle the loading of the signup screen. |
bp-members/bp-members-template.php: bp_get_signup_page() |
Get the URL to the signup page. |
bp-members/bp-members-template.php: bp_get_activation_page() |
Get the URL of the activation page. |
bp-members/bp-members-template.php: bp_get_loggedin_user_nav() |
Render the navigation markup for the logged-in user. |
bp-members/bp-members-template.php: bp_get_members_directory_permalink() |
Return member directory permalink. |
bp-invites/bp-invites-functions.php: bp_get_member_invites_wildcard_replace() |
Replaces the token, {{ }}, to it’s appropriate content dynamically. |
bp-invites/actions/invites.php: bp_member_invite_submit() |
Member submit email invite. |
bp-templates/bp-nouveau/includes/activity/template-tags.php: bp_nouveau_get_activity_comment_buttons() |
Get the action buttons for the activity comments |
bp-templates/bp-nouveau/includes/activity/template-tags.php: bp_nouveau_get_activity_entry_buttons() |
Get the action buttons inside an Activity Loop, |
bp-templates/bp-nouveau/includes/blogs/functions.php: bp_nouveau_get_blogs_directory_nav_items() |
Get blog directory navigation menu items. |
bp-core/deprecated/buddypress/2.1.php: bp_adminbar_logo() |
Output the BuddyBar logo. |
bp-core/deprecated/buddypress/1.5.php: bp_log_out_link() |
Generate a link to log out. Last used in BP 1.2-beta. You should be using wp_logout_url(). |
bp-core/bp-core-template.php: bp_root_domain() |
Output the “root domain”, the URL of the BP root blog. |
bp-core/bp-core-template.php: bp_search_form_action() |
Return the “action” attribute for search forms. |
bp-core/profile-search/bps-admin.php: bp_ps_edit_form_preview_button() |
Output BuddyBoss profile search preview button. |
bp-core/bp-core-buddybar.php: bp_core_maybe_hook_new_subnav_screen_function() |
For a given subnav item, either hook the screen function or generate redirect arguments, as necessary. |
bp-core/bp-core-functions.php: bp_core_action_search_site() |
A JavaScript-free implementation of the search functions in BuddyPress. |
bp-core/bp-core-functions.php: bp_core_redirect() |
Perform a status-safe wp_redirect() that is compatible with BP’s URI parser. |
bp-core/bp-core-filters.php: bp_core_login_redirect() |
When a user logs in, redirect him in a logical way. |
bp-core/bp-core-catchuri.php: bp_get_canonical_url() |
Get the canonical URL of the current page. |
bp-core/bp-core-catchuri.php: bp_private_network_template_redirect() |
Redirects users to login page if Private Network is enabled in BuddyBoss settings. |
bp-core/bp-core-catchuri.php: bp_core_no_access() |
Redirect a user to log in for BP pages that require access control. |
bp-core/bp-core-avatars.php: bp_core_fetch_avatar() |
Get an avatar for a BuddyPress object. |
bp-activity/bp-activity-functions.php: bp_activity_get_permalink() |
Get the permalink for a single activity item. |
bp-activity/screens/permalink.php: bp_activity_action_permalink_router() |
Catch and route requests for single activity item permalinks. |
bp-activity/classes/class-bp-activity-oembed-extension.php: BP_Activity_oEmbed_Extension::validate_url_to_item_id() |
Validates the URL to determine if the activity item is valid. |
bp-activity/classes/class-bp-akismet.php: BP_Akismet::add_activity_spam_button() |
Adds a “mark as spam” button to each activity item for site admins. |
bp-activity/classes/class-bp-akismet.php: BP_Akismet::add_activity_comment_spam_button() |
Adds a “mark as spam” button to each activity COMMENT item for site admins. |
bp-activity/bp-activity-template.php: bp_get_sitewide_activity_feed_link() |
Returns the sitewide activity feed link. |
bp-activity/bp-activity-template.php: bp_get_activity_delete_url() |
Return the URL to delete a single activity item. |
bp-activity/bp-activity-template.php: bp_get_activity_directory_permalink() |
Return activity directory permalink. |
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.