bp_get_groups_current_create_step()
Returns the current group creation step. If none is found, returns an empty string.
Description
Return
(string) $current_create_step
Source
File: bp-groups/bp-groups-template.php
function bp_get_groups_current_create_step() {
$bp = buddypress();
if ( !empty( $bp->groups->current_create_step ) ) {
$current_create_step = $bp->groups->current_create_step;
} else {
$current_create_step = '';
}
/**
* Filters the current group creation step.
*
* If none is found, returns an empty string.
*
* @since BuddyPress 1.6.0
*
* @param string $current_create_step Current step in the group creation process.
*/
return apply_filters( 'bp_get_groups_current_create_step', $current_create_step );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.6.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.