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


(string) The field value.


(int) The field data ID.


(bool) Whether to reserialize arrays before returning. Defaults to true.


(BP_XProfile_ProfileData) Current instance of the profile data being saved.

Source Source

File: bp-xprofile/classes/class-bp-xprofile-profiledata.php

View on Trac

Top ↑

Changelog Changelog

Version Description
2.1.0 Added $reserialize and $this parameters.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.