bp_get_signup_avatar_dir_value

Get the avatar dir used during signup.

Description

(string) bp_get_signup_avatar_dir_value(); 

Returns (string)


Usage

  1. if ( !function_exists( 'bp_get_signup_avatar_dir_value' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-members/bp-members-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_get_signup_avatar_dir_value(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-members/bp-members-template.php  
  1. function bp_get_signup_avatar_dir_value() { 
  2. $bp =buddypress); 
  3.  
  4. // Check if signup_avatar_dir is passed. 
  5. if ( !empty( $_POST['signup_avatar_dir'] ) ) 
  6. $signup_avatar_dir = $_POST['signup_avatar_dir']; 
  7.  
  8. // If not, check if global is set. 
  9. elseif ( !empty( $bp->signup->avatar_dir ) ) 
  10. $signup_avatar_dir = $bp->signup->avatar_dir; 
  11.  
  12. // If not, set false. 
  13. else 
  14. $signup_avatar_dir = false; 
  15.  
  16. /** 
  17. * Filters the avatar dir used during signup. 
  18. * @since 1.1.0 
  19. * @param string|bool $signup_avatar_dir Avatar dir used during signup or false. 
  20. */ 
  21. return apply_filters( 'bp_get_signup_avatar_dir_value', $signup_avatar_dir );