Tag Info

New answers tagged

0

The best way to add extra fields to the wordpress user registration form that I know of is to use the related registration form filters: register_form - This is used to add your fields to the registration form registration_errors - This is used to validate your fields user_register - This is used to add your custom user_meta data to the system and maybe ...


-1

Your code does not work, so i decided after some failed codes i found to use my mind and add 301 redirection


1

Are you referring to the email sent after new subscriber registered to the site? If so, it is a pluggable function, which means you can over ride it as you need. Put this code in your theme functions.php. if( ! function_exists('wp_new_user_notification') ) { function wp_new_user_notification($user_id, $plaintext_pass) { $user = new ...


1

The * appears under the field because the field is inside the label. There doesn't appear to be any useful filters for this, but you could use one of the hooks to inject some JS on the page that adds the *: required = jQuery( "<span>*</span>" ); required.css("color", "red"); jQuery('label br').before( required ); Note: if you're going to use a ...


1

If anyone should be faced with this problem, check if you have defined a callback function to set the user_login on pre_user_login. This filter is applied inside the wp_insert_user()-function and produced a same username again. Therefore the nicename was changed by adding a "-2". So, my problem was that I reset the user_logins again and again, instead of ...


0

Yes, you can Change email address by using wp_mail function. You can check this how to do this http://www.butlerblog.com/2011/07/14/changing-the-wp_mail-from-address-with-a-plugin/ Use this plugin for user management it supports email address when new user registers https://wordpress.org/plugins/wp-members/ Use this code in your functions.php file. ...


0

here is my code work like charm i sent $password as it is as user fill in the form no aditional requirements. $userdata = array( 'user_login' => $username, 'user_pass' => $password, 'user_nicename' => str_replace(' ','-',$display_name_appearing_on_website), 'user_email' => $email_address, ...



Top 50 recent answers are included