Contents
bp_get_admin_url( string $path = '', string $scheme = 'admin' )
Return the correct admin URL based on BuddyPress and WordPress configuration.
Description
Parameters
- $path
-
(Optional) The sub-path under /wp-admin to be appended to the admin URL.
Default value: ''
- $scheme
-
(Optional) The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 'http' or 'https' can be passed to force those schemes.
Default value: 'admin'
Return
(string) Admin url link with optional path appended.
Source
File: bp-core/bp-core-functions.php
function bp_get_admin_url( $path = '', $scheme = 'admin' ) { // Links belong in network admin. if ( bp_core_do_network_admin() ) { $url = network_admin_url( $path, $scheme ); // Links belong in site admin. } else { $url = admin_url( $path, $scheme ); } return $url; }
Changelog
Version | Description |
---|---|
BuddyPress 1.5.0 | Introduced. |
Related
Uses
Uses | Description |
---|---|
bp-core/bp-core-functions.php: bp_core_do_network_admin() |
Should BuddyPress appear in network admin (vs a single site Dashboard)? |
Used By | Description |
---|---|
bp-media/bp-media-settings.php: bp_media_settings_callback_extension_link() | |
bp-media/bp-media-settings.php: bp_document_get_settings_sections() |
Get the Document settings sections. |
bp-media/bp-media-settings.php: bp_document_uploading_tutorial() |
Link to Document Uploading tutorial |
bp-integrations/learndash/bp-admin-learndash-tab.php: BP_LearnDash_Admin_Integration_Tab::bp_tutorial_social_group_sync() |
Social Group Sync View Tutorial button. |
bp-integrations/learndash/bp-admin-learndash-tab.php: BP_LearnDash_Admin_Integration_Tab::bp_tutorial_learndash_group_sync() |
LearnDash Group Sync View Tutorial button. |
bp-integrations/learndash/bp-admin-learndash-tab.php: BP_LearnDash_Admin_Integration_Tab::bp_profiles_tutorial_my_courses() |
My Courses Tab View Tutorial button. |
bp-integrations/compatibility/bp-compatibility-integration.php: BP_Compatibility_Integration::action_links() |
Change the Third party plugin setting link. |
bp-core/compatibility/bp-incompatible-plugins-helper.php: bp_core_add_support_for_google_captcha_pro() |
Include plugin when plugin is activated |
bp-core/compatibility/bp-incompatible-plugins-helper.php: bp_core_learndash_bbpress_notices() |
Include plugin when plugin is activated |
bp-core/admin/bp-core-admin-settings.php: bp_core_admin_settings_save() |
Save our settings. |
bp-core/admin/bp-core-admin-settings.php: bp_group_directories_tutorial() |
Link to Group Directories tutorial |
bp-core/admin/bp-core-admin-settings.php: bp_admin_registration_setting_tutorial() |
Link to Registration tutorial |
bp-core/admin/settings/bp-admin-setting-xprofile.php: BP_Admin_Setting_Xprofile::bp_profile_directories_tutorial() |
Link to Profile Directories tutorial |
bp-core/admin/bp-core-admin-settings.php: bp_profile_names_tutorial() |
Link to Profile Names tutorial |
bp-core/admin/bp-core-admin-settings.php: bp_profile_photos_tutorial() |
Link to Profile Photos tutorial |
bp-forums/admin/functions.php: bbp_core_get_import_forum_tools_settings_admin_tabs() | |
bp-forums/admin/functions.php: bbp_core_get_tools_settings_admin_tabs() | |
bp-forums/admin.php: bp_core_get_forums_admin_tabs() |
Register tabs for the BuddyBoss > Forums screens. |
bp-media/bp-media-filters.php: bp_media_activation_notice() |
Hook to display admin notices when media component is active |
bp-media/bp-media-filters.php: bp_media_get_tools_media_settings_admin_tabs() | |
bp-media/bp-media-settings.php: bp_animated_gifs_tutorial() |
Link to Animated GIFs tutorial |
bp-media/bp-media-settings.php: bp_emoji_tutorial() |
Link to Emoji tutorial |
bp-media/bp-media-settings.php: bp_photo_uploading_tutorial() |
Link to Photo Uploading tutorial |
bp-xprofile/classes/class-bp-xprofile-group.php: BP_XProfile_Group::render_admin_form() |
Output the admin area field group form. |
bp-xprofile/classes/class-bp-xprofile-field.php: BP_XProfile_Field::render_admin_form() |
Output the admin form for this field. |
bp-xprofile/classes/class-bp-xprofile-field.php: BP_XProfile_Field::submit_metabox() |
Private method used to display the submit metabox. |
bp-xprofile/bp-xprofile-admin.php: xprofile_admin_field() |
Handles the WYSIWYG display of each profile field on the edit screen. |
bp-xprofile/bp-xprofile-admin.php: bp_core_get_users_admin_tabs() |
Register tabs for the BuddyBoss > Groups screens. |
bp-xprofile/bp-xprofile-admin.php: xprofile_admin_screen() |
Output the main XProfile management screen. |
bp-xprofile/bp-xprofile-admin.php: xprofile_admin_manage_field() |
Handles the adding or editing of profile field data for a user. |
bp-messages/classes/class-bp-messages-notices-list-table.php: BP_Messages_Notices_List_Table::column_subject() |
Generates content for the “subject” column. |
bp-messages/classes/class-bp-messages-notices-admin.php: BP_Messages_Notices_Admin::setup_globals() |
Populate the classs variables. |
bp-groups/bp-groups-admin.php: bp_group_type_show_data() |
Display data by column and post id. |
bp-groups/bp-groups-admin.php: bp_groups_admin_edit_metabox_status() |
Renders the Status metabox for the Groups admin edit screen. |
bp-groups/bp-groups-admin.php: bp_groups_admin_edit() |
Display the single groups edit screen. |
bp-groups/bp-groups-admin.php: bp_process_create_group_admin() |
Saving the data of newly create group from the backend. |
bp-groups/bp-groups-admin.php: bp_groups_admin_index() |
Display the Groups admin index screen. |
bp-groups/classes/class-bp-groups-list-table.php: BP_Groups_List_Table::column_comment() |
Name column, and “quick admin” rollover actions. |
bp-groups/classes/class-bp-groups-list-table.php: BP_Groups_List_Table::get_views() |
Get the list of views available on this table (e.g. “all”, “public”). |
bp-members/classes/class-bp-members-admin.php: BP_Members_Admin::signups_admin_index() |
This is the list of the Pending accounts (signups). |
bp-members/classes/class-bp-members-admin.php: BP_Members_Admin::signups_admin_manage() |
This is the confirmation screen for actions. |
bp-members/classes/class-bp-members-admin.php: BP_Members_Admin::user_admin() |
Display the user’s profile. |
bp-members/classes/class-bp-members-admin.php: BP_Members_Admin::signup_filter_view() |
Filter the WP Users List Table views to include ‘bp-signups’. |
bp-members/classes/class-bp-members-admin.php: BP_Members_Admin::setup_globals() |
Set admin-related globals. |
bp-members/classes/class-bp-members-list-table.php: BP_Members_List_Table::column_username() |
The row actions (delete/activate/email). |
bp-members/classes/class-bp-members-list-table.php: BP_Members_List_Table::no_items() |
The text shown when no items are found. |
bp-templates/bp-nouveau/includes/messages/functions.php: bp_nouveau_messages_adjust_admin_nav() |
Adjust admin message navigation for notices. |
bp-search/bp-search-settings.php: bp_search_settings_tutorial() |
Link to Search tutorial |
bp-core/admin/bp-core-admin-components.php: bp_core_admin_components_options() |
Creates reusable markup for component setup on the Components and Pages dashboard panel. |
bp-core/admin/bp-core-admin-components.php: bp_core_admin_components_settings_handler() |
Handle saving the Component settings. |
bp-core/admin/bp-core-admin-components.php: bp_core_admin_components_activation_handler() |
Handle saving the Component settings. |
bp-core/admin/bp-core-admin-tools.php: bp_core_admin_available_tools_intro() |
Render an introduction of BuddyPress tools on Available Tools page. |
bp-core/admin/bp-core-admin-pages.php: bp_core_admin_maybe_save_pages_settings() |
Save BuddyBoss pages settings |
bp-core/admin/bp-core-admin-pages.php: bp_core_admin_register_registration_page_fields() |
Register registration page fields |
bp-core/admin/settings/bp-admin-setting-xprofile.php: BP_Admin_Setting_Xprofile::bp_profile_types_tutorial() |
Link to Profile Types tutorial |
bp-core/admin/settings/bp-admin-setting-xprofile.php: BP_Admin_Setting_Xprofile::bp_profile_search_tutorial() |
Link to Profile Search tutorial |
bp-core/admin/settings/bp-admin-setting-xprofile.php: BP_Admin_Setting_Xprofile::settings_save() | |
bp-core/admin/settings/bp-admin-setting-friends.php: BP_Admin_Setting_Friends::bp_connection_settings_tutorial() |
Link to Connection Settings tutorial |
bp-core/admin/bp-core-admin-functions.php: bp_core_get_emails_admin_tabs() |
Register tabs for the BuddyBoss > Emails screens. |
bp-core/admin/bp-core-admin-functions.php: bp_core_get_tools_settings_admin_tabs() |
Get the data for the settings tabs in the admin area. |
bp-core/admin/bp-core-admin-functions.php: bp_core_get_tools_import_profile_settings_admin_tabs() | |
bp-core/admin/bp-core-admin-functions.php: bp_core_get_tools_repair_community_settings_admin_tabs() | |
bp-core/admin/bp-core-admin-functions.php: bp_core_get_groups_admin_tabs() |
Register tabs for the BuddyBoss > Groups screens. |
bp-core/admin/bp-core-admin-functions.php: bp_admin_email_maybe_add_translation_notice() |
In admin emails list, for non-en_US locales, add notice explaining how to reinstall emails. |
bp-core/admin/bp-core-admin-functions.php: bp_admin_email_add_codex_notice() |
In emails editor, add notice linking to token documentation on Codex. |
bp-core/admin/bp-core-admin-functions.php: bp_core_admin_user_row_actions() |
Add “Mark as Spam/Ham” button to user row actions. |
bp-core/admin/bp-core-admin-functions.php: bp_core_admin_integrations_url() |
Return the admin url with the tab selected |
bp-core/admin/bp-core-admin-functions.php: bp_core_get_admin_tabs() |
Get the data for the tabs in the admin area. |
bp-core/admin/bp-core-admin-functions.php: bp_core_admin_setting_url() |
Return the admin url with the tab selected |
bp-core/admin/bp-core-admin-functions.php: bp_core_admin_backpat_page() |
Generates markup for a fallback top-level BuddyPress menu page, if the site is running a legacy plugin which hasn’t been updated. If the site is up to date, this page will never appear. |
bp-core/admin/bp-core-admin-functions.php: bp_core_activation_notice() |
Verify that some BP prerequisites are set up properly, and notify the admin if not. |
bp-core/admin/bp-core-admin-functions.php: bp_do_activation_redirect() |
Redirect user to BuddyPress’s What’s New page on activation. |
bp-core/admin/bp-core-admin-settings.php: bp_email_invites_tutorial() |
Link to Email Invites tutorial |
bp-core/admin/bp-core-admin-settings.php: bp_group_types_tutorial() |
Link to Group Types tutorial |
bp-core/admin/bp-core-admin-settings.php: bp_group_hierarchies_tutorial() |
Link to Group Hierarchies tutorial |
bp-core/admin/bp-core-admin-settings.php: bp_group_setting_tutorial() |
Link to Group Settings tutorial |
bp-core/admin/bp-core-admin-settings.php: bp_posts_in_activity_tutorial() |
Link to Posts in Activity Feed tutorial |
bp-core/admin/bp-core-admin-settings.php: bp_activity_settings_tutorial() |
Link to Activity Settings tutorial |
bp-core/admin/bp-core-admin-settings.php: bp_admin_setting_tutorial() |
Link to Admin Settings tutorial |
bp-core/admin/bp-core-admin-settings.php: bp_privacy_tutorial() |
Link to Privacy tutorial |
bp-core/classes/class-bp-admin-tab.php: BP_Admin_Tab::form_html() |
Output the form html on the setting page (not including tab and page title) |
bp-core/classes/class-bp-admin.php: BP_Admin::modify_plugin_action_links() |
Add Settings link to plugins area. |
bp-core/classes/class-bp-admin.php: BP_Admin::enqueue_scripts() |
Add some general styling to the admin area. |
bp-core/bp-core-functions.php: bp_core_get_components() |
Return a list of component information. |
bp-core/bp-core-functions.php: bp_admin_url() |
Output the correct admin URL based on BuddyPress and WordPress configuration. |
bp-activity/bp-activity-functions.php: bp_activity_favorites_upgrade_data() |
Check if BuddyPress activity favorites data needs upgrade & Update to BuddyBoss activity like data |
bp-activity/bp-activity-adminbar.php: bp_activity_admin_menu() |
Add the Activity top-level menu link when viewing single activity item. |
bp-activity/bp-activity-admin.php: bp_activity_admin_edit() |
Display the single activity edit screen. |
bp-activity/classes/class-bp-akismet.php: BP_Akismet::comment_row_action() |
Add a history item to the hover links in an activity’s row. |
bp-activity/classes/class-bp-activity-list-table.php: BP_Activity_List_Table::column_response() |
“In response to” column markup. |
bp-activity/classes/class-bp-activity-list-table.php: BP_Activity_List_Table::get_views() |
Get the list of views available on this table (e.g. “all”, “spam”). |
bp-activity/classes/class-bp-activity-list-table.php: BP_Activity_List_Table::column_comment() |
Content column, and “quick admin” rollover actions. |
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.