apply_filters( 'bp_core_component_slug_from_root_slug', string $slug , string $root_slug )
Filters the default component slug from a WP page root_slug.
Description
Parameters
- $slug
-
Short slug for use in the middle of URLs.
- $root_slug
-
The root slug which comes from $bp->pages-[component]->slug.
Source
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.