Opened 6 years ago
Closed 5 years ago
#8276 closed enhancement (wontfix)
Add action filter to bp-xprofile > screens > edit.php
| Reported by: | stokim | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Extended Profile | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Hi there!
Thank you for your efforts always.
In case of xprofile field, there's no filter hook when changed.
bp-xprofile > screens > edit.php 52 line,
Could you add action filter,
do_action( 'pre_xprofile_profile_field_data_update', $posted_field_ids );
So that I can handle with $_POST. $field_id and $_POSTfield_ids?
Actually, I thought it would be better to add an action hook in bp-xprofile > bp-xprofile-functions.php > xprofile_set_field_data > 432 line do_action( 'pre_bp_xprofile_set_field_data_validate', $value, $field, $field_type_obj ); for registration process and edit process both, however, there's no handling errors on this function, so I gave up.
Thank you for your consideration.
Best regards,
Jen
Attachments (1)
Change History (6)
#3
@
6 years ago
The attached is the filter hook for handling errors of Xprofile value validation. It works well :)
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Or it would be good if there's a function, validate_xproifle_field like this: https://buddypress.trac.wordpress.org/attachment/ticket/8066/8066.2.patch