apply_filters( 'bp_xprofile_set_field_data_pre_validate', mixed $value, BP_XProfile_Field $field, BP_XProfile_Field_Type $field_type_obj )

Filter the raw submitted profile field value.

Description

Use this filter to modify the values submitted by users before doing field-type-specific validation.

Parameters

$value

(mixed) Value passed to xprofile_set_field_data().

$field

(BP_XProfile_Field) Field object.

$field_type_obj

(BP_XProfile_Field_Type) Field type object.

Source

File: bp-xprofile/bp-xprofile-functions.php

Changelog

Changelog
Version Description
BuddyPress 2.1.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.