bp_get_group_creation_form_action()

Get the group creation next step url.

Description

Return

(mixed|void)

Source

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

5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
function bp_get_group_creation_form_action() {
    $bp = buddypress();
 
    if ( !bp_action_variable( 1 ) ) {
        $keys = array_keys( $bp->groups->group_creation_steps );
        $bp->action_variables[1] = array_shift( $keys );
    }
 
    /**
     * Filters the group creation form action.
     *
     * @since BuddyPress 1.1.0
     *
     * @param string $value Action to be used with group creation form.
     */
    return apply_filters( 'bp_get_group_creation_form_action', trailingslashit( bp_get_groups_directory_permalink() . 'create/step/' . bp_action_variable( 1 ) ) );
}

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.