xprofile_get_field_data

  • apply_filters( 'xprofile_get_field_data', $value, $field_id, $user_id )

    Source Reference:

    • Component: BuddyPress :: bp-xprofile
      File: /bp-xprofile/bp-xprofile-functions.php :: Trac Source Line: 176
      	if ( empty( $field_id ) )
      		return false;
      
      	$values = maybe_unserialize( BP_XProfile_ProfileData::get_value_byid( $field_id, $user_id ) );
      
      	if ( is_array( $values ) ) {
      		$data = array();
      		foreach( (array)$values as $value ) {
      			$data[] = apply_filters( 'xprofile_get_field_data', $value, $field_id, $user_id );
      		}
      	} else {
      		$data = apply_filters( 'xprofile_get_field_data', $values, $field_id, $user_id );
      	}
      
      	return $data;
      }
      
      /**
       * A simple function to set profile data for a specific field for a specific user.
      
  • apply_filters( 'xprofile_get_field_data', $values, $field_id, $user_id )

    Source Reference:

    • Component: BuddyPress :: bp-xprofile
      File: /bp-xprofile/bp-xprofile-functions.php :: Trac Source Line: 179
      	$values = maybe_unserialize( BP_XProfile_ProfileData::get_value_byid( $field_id, $user_id ) );
      
      	if ( is_array( $values ) ) {
      		$data = array();
      		foreach( (array)$values as $value ) {
      			$data[] = apply_filters( 'xprofile_get_field_data', $value, $field_id, $user_id );
      		}
      	} else {
      		$data = apply_filters( 'xprofile_get_field_data', $values, $field_id, $user_id );
      	}
      
      	return $data;
      }
      
      /**
       * A simple function to set profile data for a specific field for a specific user.
       *
       * @package BuddyPress Core
       * @param $field The ID of the field, or the $name of the field.
      

Hook: add_filter: xprofile_get_field_data instances (3)

  • add_filter( 'xprofile_get_field_data',                'wp_filter_kses', 1 )
    $tag: xprofile_get_field_data
    $function_to_add: wp_filter_kses
    $priority: 1
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-xprofile
      File: /bp-xprofile/bp-xprofile-filters.php :: Trac Source Line: 31
      add_filter( 'bp_get_the_profile_field_edit_value',    'esc_html'           );
      
      add_filter( 'bp_get_the_profile_group_name',          'stripslashes' );
      add_filter( 'bp_get_the_profile_group_description',   'stripslashes' );
      add_filter( 'bp_get_the_profile_field_value',         'stripslashes' );
      add_filter( 'bp_get_the_profile_field_edit_value',    'stripslashes' );
      add_filter( 'bp_get_the_profile_field_name',          'stripslashes' );
      add_filter( 'bp_get_the_profile_field_description',   'stripslashes' );
      
      add_filter( 'xprofile_get_field_data',                'wp_filter_kses', 1 );
      add_filter( 'xprofile_field_name_before_save',        'wp_filter_kses', 1 );
      add_filter( 'xprofile_field_description_before_save', 'wp_filter_kses', 1 );
      
      add_filter( 'xprofile_get_field_data',                'force_balance_tags' );
      add_filter( 'xprofile_field_name_before_save',        'force_balance_tags' );
      add_filter( 'xprofile_field_description_before_save', 'force_balance_tags' );
      
      add_filter( 'xprofile_get_field_data',                'stripslashes' );
      
      /* Custom BuddyPress filters */
      
  • add_filter( 'xprofile_get_field_data',                'force_balance_tags' )
    $tag: xprofile_get_field_data
    $function_to_add: force_balance_tags
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-xprofile
      File: /bp-xprofile/bp-xprofile-filters.php :: Trac Source Line: 35
      add_filter( 'bp_get_the_profile_field_value',         'stripslashes' );
      add_filter( 'bp_get_the_profile_field_edit_value',    'stripslashes' );
      add_filter( 'bp_get_the_profile_field_name',          'stripslashes' );
      add_filter( 'bp_get_the_profile_field_description',   'stripslashes' );
      
      add_filter( 'xprofile_get_field_data',                'wp_filter_kses', 1 );
      add_filter( 'xprofile_field_name_before_save',        'wp_filter_kses', 1 );
      add_filter( 'xprofile_field_description_before_save', 'wp_filter_kses', 1 );
      
      add_filter( 'xprofile_get_field_data',                'force_balance_tags' );
      add_filter( 'xprofile_field_name_before_save',        'force_balance_tags' );
      add_filter( 'xprofile_field_description_before_save', 'force_balance_tags' );
      
      add_filter( 'xprofile_get_field_data',                'stripslashes' );
      
      /* Custom BuddyPress filters */
      
      add_filter( 'bp_get_the_profile_field_value',         'xprofile_filter_format_field_value', 1, 2 );
      add_filter( 'bp_get_the_site_member_profile_data',    'xprofile_filter_format_field_value', 1, 2 );
      add_filter( 'bp_get_the_profile_field_value',         'xprofile_filter_link_profile_data', 9, 2 );
      
  • add_filter( 'xprofile_get_field_data',                'stripslashes' )
    $tag: xprofile_get_field_data
    $function_to_add: stripslashes
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-xprofile
      File: /bp-xprofile/bp-xprofile-filters.php :: Trac Source Line: 39
      add_filter( 'xprofile_get_field_data',                'wp_filter_kses', 1 );
      add_filter( 'xprofile_field_name_before_save',        'wp_filter_kses', 1 );
      add_filter( 'xprofile_field_description_before_save', 'wp_filter_kses', 1 );
      
      add_filter( 'xprofile_get_field_data',                'force_balance_tags' );
      add_filter( 'xprofile_field_name_before_save',        'force_balance_tags' );
      add_filter( 'xprofile_field_description_before_save', 'force_balance_tags' );
      
      add_filter( 'xprofile_get_field_data',                'stripslashes' );
      
      /* Custom BuddyPress filters */
      
      add_filter( 'bp_get_the_profile_field_value',         'xprofile_filter_format_field_value', 1, 2 );
      add_filter( 'bp_get_the_site_member_profile_data',    'xprofile_filter_format_field_value', 1, 2 );
      add_filter( 'bp_get_the_profile_field_value',         'xprofile_filter_link_profile_data', 9, 2 );
      
      add_filter( 'xprofile_data_value_before_save',        'xprofile_sanitize_data_value_before_save', 1, 2 );
      add_filter( 'xprofile_filtered_data_value_before_save', 'trim', 2 );
      

Comments are closed.