bp_get_signup_avatar_dir_value()

Get the avatar dir used during signup.

Description

Return

(string)

Source

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

2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
function bp_get_signup_avatar_dir_value() {
    $bp = buddypress();
 
    // Check if signup_avatar_dir is passed.
    if ( !empty( $_POST['signup_avatar_dir'] ) )
        $signup_avatar_dir = $_POST['signup_avatar_dir'];
 
    // If not, check if global is set.
    elseif ( !empty( $bp->signup->avatar_dir ) )
        $signup_avatar_dir = $bp->signup->avatar_dir;
 
    // If not, set false.
    else
        $signup_avatar_dir = false;
 
    /**
     * Filters the avatar dir used during signup.
     *
     * @since BuddyPress 1.1.0
     *
     * @param string|bool $signup_avatar_dir Avatar dir used during signup or false.
     */
    return apply_filters( 'bp_get_signup_avatar_dir_value', $signup_avatar_dir );
}

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.