bp_get_activate_slug()

Return the activation slug.

Description

Return

(string)

Source

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

250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
function bp_get_activate_slug() {
    $bp = buddypress();
 
    if ( !empty( $bp->pages->activate->slug ) ) {
        $slug = $bp->pages->activate->slug;
    } elseif ( defined( 'BP_ACTIVATION_SLUG' ) ) {
        $slug = BP_ACTIVATION_SLUG;
    } else {
        $slug = 'activate';
    }
 
    /**
     * Filters the activation slug.
     *
     * @since BuddyPress 1.5.0
     *
     * @param string $slug Activation slug.
     */
    return apply_filters( 'bp_get_activate_slug', $slug );
}

Changelog

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