Dynamically change value of custom field added in User registration form
-
Hi!
So I have added an ACF custom field ( text input) to my User registration form, and I want to dynamically give it the value of the page url the current user is registering from.
I managed to do this with add_filter(‘acf/load_value/name=page_url’, ‘change_custom_field_value’, 20, 2);
but it changes the ACF field value everywhere. I only want to save that value for the specific user that is registering and the display it in the Dashboard-> Users -> created a new column calle “registered from page”Would it be possible to save that value only for the specific user?
Thank you in advance!
- The topic ‘Dynamically change value of custom field added in User registration form’ is closed to new replies.