apply_filters( 'bp_xprofile_set_field_data_pre_save', boolean , array $field_args )

Return a WP_Error object or true to use your custom way of saving field values.


Description Description


Parameters Parameters

Whether to shortcircuit the $bp->profile->table_name_data table.

$field_args

An array of arguments.

  • 'field_type_obj'
    (object) Field type object.
  • 'field'
    (BP_XProfile_Field) Field object.
  • 'user_id'
    (integer) The user ID.
  • 'value'
    (mixed) Value passed to xprofile_set_field_data().
  • 'is_required'
    (boolean) Whether or not the field is required.


Top ↑

Source Source

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


Top ↑

Changelog Changelog

Changelog
Version Description
8.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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