xprofile_get_random_profile_data

  • apply_filters( 'xprofile_get_random_profile_data', $field_data )

    Source Reference:

    • Component: BuddyPress :: bp-xprofile
      File: /bp-xprofile/bp-xprofile-functions.php :: Trac Source Line: 313
      	if ( !$field_data )
      		return false;
      
      	$field_data[0]->value = xprofile_format_profile_field( $field_data[0]->type, $field_data[0]->value );
      
      	if ( !$field_data[0]->value || empty( $field_data[0]->value ) )
      		return false;
      
      	return apply_filters( 'xprofile_get_random_profile_data', $field_data );
      }
      
      /**
       * Formats a profile field according to its type. [ TODO: Should really be moved to filters ]
       *
       * @package BuddyPress Core
       * @param $field_type The type of field: datebox, selectbox, textbox etc
       * @param $field_value The actual value
       * @uses bp_format_time() Formats a time value based on the WordPress date format setting
       * @return $field_value The formatted value
      

Comments are closed.