bp_root_slug( string $component = '' )
Output the root slug for a given component.
Description
Parameters
- $component
-
(Optional) The component name.
Default value: ''
Source
File: bp-core/bp-core-template.php
function bp_root_slug( $component = '' ) { echo bp_get_root_slug( $component ); }
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.