bp_core_signup_avatar_upload_dir

  • apply_filters( 'bp_core_signup_avatar_upload_dir', array( 'path' => $path, 'url' => $newurl, 'subdir' => $newsubdir, 'basedir' => $newbdir, 'baseurl' => $newburl, 'error' => false ) )

    Source Reference:

    • Component: BuddyPress :: bp-members
      File: /bp-members/bp-members-signup.php :: Trac Source Line: 563
      	$newbdir = $path;
      
      	if ( !file_exists( $path ) )
      		@wp_mkdir_p( $path );
      
      	$newurl = bp_core_avatar_url() . '/avatars/signups/' . $bp->signup->avatar_dir;
      	$newburl = $newurl;
      	$newsubdir = '/avatars/signups/' . $bp->signup->avatar_dir;
      
      	return apply_filters( 'bp_core_signup_avatar_upload_dir', array( 'path' => $path, 'url' => $newurl, 'subdir' => $newsubdir, 'basedir' => $newbdir, 'baseurl' => $newburl, 'error' => false ) );
      }
      
      function bp_core_signup_send_validation_email( $user_id, $user_email, $key ) {
      	$activate_url = bp_get_activation_page() ."?key=$key";
      	$activate_url = esc_url( $activate_url );
      
      	$from_name = ( '' == get_option( 'blogname' ) ) ? __( 'BuddyPress', 'buddypress' ) : esc_html( get_option( 'blogname' ) );
      
      	$message = sprintf( __( "Thanks for registering! To complete the activation of your account please click the following link:nn%snn", 'buddypress' ), $activate_url );
      	$subject = '[' . $from_name . '] ' . __( 'Activate Your Account', 'buddypress' );
      

Comments are closed.