Pass variable to ‘value’ in registration form
-
Hello,
I have a variable in $_GET in my page URL that I want to pass as the default value in my registration form.
I’ve tried the code below but it does not work. Can someone help,
add_filter( 'wpmem_register_form_rows', 'my_new_element', 10, 2 ); function my_new_element( $rows, $tag ) { // Change the label for a field with "my_field" as the meta key $rows['user_email']['value'] = $_GET['email']; return $rows; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Pass variable to ‘value’ in registration form’ is closed to new replies.