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.

Description

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

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

Changelog

Changelog
Version Description
BuddyPress 1.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.