apply_filters( 'xprofile_data_value_before_save', string $field_value , int $data_id , bool $reserialize , BP_XProfile_ProfileData $this )
Filters the data’s value before saving to the database.
Parameters Parameters
- $field_value
-
(string) The field value.
- $data_id
-
(int) The field data ID.
- $reserialize
-
(bool) Whether to reserialize arrays before returning. Defaults to true.
- $this
-
(BP_XProfile_ProfileData) Current instance of the profile data being saved.
Source Source
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Added $reserialize and $this parameters. |
1.0.0 | Introduced. |