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

6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
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

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.