- This topic has 2 replies, 2 voices, and was last updated 11 months, 3 weeks ago by .
-
Topic
-
Hey,
I’ve created custom fields to safe bank information. Now I want to modify the submitted data to encrypt the date to store it in the database.
But I can’t modify the submitted data because the $data array is empty.( The data the user submits is still saved to the database – but unmodified )
Using the following code to get the $data:
add_filter( 'rwmb_profile_update_user_data', 'modify_users_bank_data', 10, 2); function modify_users_bank_data($data, $config) { print_r('<pre>'); print_r($data); exit; return $data; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.