xprofile_field_name_before_save

  • apply_filters( 'xprofile_field_name_before_save',        $this->name,        $this->id )

    Source Reference:

    • Component: BuddyPress :: bp-xprofile
      File: /bp-xprofile/bp-xprofile-classes.php :: Trac Source Line: 403
      	function save() {
      		global $wpdb, $bp;
      
      		$error = false;
      
      		$this->group_id		= apply_filters( 'xprofile_field_group_id_before_save',    $this->group_id,    $this->id );
      		$this->parent_id	= apply_filters( 'xprofile_field_parent_id_before_save',   $this->parent_id,   $this->id );
      		$this->type			= apply_filters( 'xprofile_field_type_before_save',        $this->type,        $this->id );
      		$this->name			= apply_filters( 'xprofile_field_name_before_save',        $this->name,        $this->id );
      		$this->description	= apply_filters( 'xprofile_field_description_before_save', $this->description, $this->id );
      		$this->is_required	= apply_filters( 'xprofile_field_is_required_before_save', $this->is_required, $this->id );
      		$this->order_by		= apply_filters( 'xprofile_field_order_by_before_save',    $this->order_by,    $this->id );
      		$this->field_order	= apply_filters( 'xprofile_field_field_order_before_save', $this->field_order, $this->id );
      
      		do_action_ref_array( 'xprofile_field_before_save', array( &$this ) );
      
      		if ( $this->id != null )
      			$sql = $wpdb->prepare( "UPDATE {$bp->profile->table_name_fields} SET group_id = %d, parent_id = 0, type = %s, name = %s, description = %s, is_required = %d, order_by = %s, field_order = %d WHERE id = %d", $this->group_id, $this->type, $this->name, $this->description, $this->is_required, $this->order_by, $this->field_order, $this->id );
      		else
      

Hook: add_filter: xprofile_field_name_before_save instances (2)

  • add_filter( 'xprofile_field_name_before_save',        'wp_filter_kses', 1 )
    $tag: xprofile_field_name_before_save
    $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: 32
      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_field_name_before_save',        'force_balance_tags' )
    $tag: xprofile_field_name_before_save
    $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: 36
      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 );
      

Comments are closed.