Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/22/2014 08:24:39 PM (10 years ago)
Author:
djpaul
Message:

xProfile: add extra arguments to xprofile_data_value_before_save and xprofile_filtered_data_value_before_save filters.

This allows plugin developers greater control over filtering profile data in specific circumstances, particularly for custom field types.

Fixes #5742, props needle.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-classes.php

    r8656 r8665  
    10981098        $this->user_id      = apply_filters( 'xprofile_data_user_id_before_save',      $this->user_id,         $this->id );
    10991099        $this->field_id     = apply_filters( 'xprofile_data_field_id_before_save',     $this->field_id,        $this->id );
    1100         $this->value        = apply_filters( 'xprofile_data_value_before_save',        $this->value,           $this->id );
     1100        $this->value        = apply_filters( 'xprofile_data_value_before_save',        $this->value,           $this->id, true, $this );
    11011101        $this->last_updated = apply_filters( 'xprofile_data_last_updated_before_save', bp_core_current_time(), $this->id );
    11021102
Note: See TracChangeset for help on using the changeset viewer.