bp_is_group_creation_step_complete( array $step_slugs )

Check which group creation steps have been completed.

Description

Parameters

$step_slugs

(Required)

Return

(bool)

Source

File: bp-groups/bp-groups-template.php

5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
function bp_is_group_creation_step_complete( $step_slugs ) {
    $bp = buddypress();
 
    if ( !isset( $bp->groups->completed_create_steps ) ) {
        return false;
    }
 
    if ( is_array( $step_slugs ) ) {
        $found = true;
 
        foreach ( (array) $step_slugs as $step_slug ) {
            if ( !in_array( $step_slug, $bp->groups->completed_create_steps ) ) {
                $found = false;
            }
        }
 
        return $found;
    } else {
        return in_array( $step_slugs, $bp->groups->completed_create_steps );
    }
 
    return true;
}

Changelog

Changelog
Version Description
BuddyPress 1.1.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.