bp_admin_url( string $path = '', string $scheme = 'admin' )
Output the correct admin URL based on BuddyPress and WordPress configuration.
Description
See also
- bp_get_admin_url(): For description of parameters.
Parameters
- $path
-
(Optional) See bp_get_admin_url().
Default value: ''
- $scheme
-
(Optional) See bp_get_admin_url().
Default value: 'admin'
Source
File: bp-core/bp-core-functions.php
function bp_admin_url( $path = '', $scheme = 'admin' ) { echo esc_url( bp_get_admin_url( $path, $scheme ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.5.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.