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.

Parameters Parameters

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


(array) 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.

Source Source

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

View on Trac

Top ↑

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.