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;
}