Last active
January 22, 2020 19:03
-
-
Save ultimatemember/1d81b59cd8b21f67b36c to your computer and use it in GitHub Desktop.
Add a hidden field to registration forms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('um_after_register_fields', 'add_a_hidden_field_to_register'); | |
function add_a_hidden_field_to_register( $args ){ | |
echo '<input type="hidden" name="field_id" id="field_id" value="HERE_GOES_THE_VALUE" />'; | |
} |
What actually is the purpose of a hidden field?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Then how do we display this on Profile section?
It seems not working