set up User email verification after Signup in wordpress theme
set up User email verification after Signup in wordpress theme
set up User email verification after Signup in wordpress theme
You don’t need a separate form to create a register page. Go to the network Dashboard » Network setting » Enable both sites and users can register, and you are ready to go. Visitors now to your site can register a new site at this URL: yoursitename.com/wp-signup.php And for reference you can go through this … Read more
WordPress provides the is_user_logged_in() function for this. Documentation: https://codex.wordpress.org/Function_Reference/is_user_logged_in You could do something like: <?php if ( is_user_logged_in() ) { // show button to Test_Page } else { // show button to registration page } ?>
I have looked over the wordpress.org plugin directory and I couldn’t find anything… but you can always do this: 1) Create a copy of the wp-login.php and name it to something secret so you can always login later (like superlog_in1234.php) 2) Edit wp-login.php and look for all the <form> elements, and replace them with <meta … Read more
Gravity Forms is a premium one, but was the only one that solved without flaws a custom registration I needed to implement… Appart from the Premium part, I have to inform that only the Developer licence will give you access to the User Registration extension. If you go past the Premium-Developer issue, check their forums … Read more
You have to copy the original wp-signup.php file, do the changes you need and use it in your theme as a custom template.
This is one way to do it add_action(‘user_register’, ‘set_custom_default_role’) function set_custom_default_role($user_id) { // Maybe get available referral codes from database & compare them against the one available if(true) { $user = new WP_User( $user_id ); $user->set_role(‘custom-role-slug’); } }
I had this same problem and I found that the blogtemplates plugin was deleting my options after I updated them. You may have a similar situation. I fixed my case by making my wpmu_new_blog hook execute after blog templates. // blogtemplates executes at 9999, go last at 10000 add_action(‘wpmu_new_blog’, ‘process_extra_field_on_blog_signup’, 10000, 6);
The message seem to be coming from confirm_blog_signup() which is defined in wp-signup.php. Note that the site seems to be running outdated WP version and it is slightly different now. However it is bad practice to just edit core file. There doesn’t seem to be designated and/or easy way to change output there, so you … Read more
Update: I’ve got it working now! It still shows a text box that says the User email must be confirmed, but it DOES create the user regardless of that information. Here is the code I have used: function your_disable_activation( $user, $user_email, $key, $meta=”” ) { // Activate the user $user_id = wpmu_activate_signup( $key ); wp_redirect( … Read more