bp_get_groups_slug
Return the groups component slug.
Description
(string) bp_get_groups_slug();
Returns (string)
Usage
if ( !function_exists( 'bp_get_groups_slug' ) ) { require_once ABSPATH . PLUGINDIR . 'buddypress/bp-groups/bp-groups-template.php'; } // NOTICE! Understand what this does before running. $result = bp_get_groups_slug();
Defined (1)
The function is defined in the following location(s).
- /bp-groups/bp-groups-template.php
- function bp_get_groups_slug() {
- /**
- * Filters the groups component slug.
- *
- * @since 1.5.0
- *
- * @param string $slug Groups component slug.
- */
- return apply_filters( 'bp_get_groups_slug',buddypress)->groups->slug );
- }