Man finally someone put the pieces together. You rock thanks man!
@aabozaid7 Жыл бұрын
Loved the way you illustrate with, and thanks not many people talk about custom registration, thanks man.
@webhunter982 жыл бұрын
bro u saved me! ive been working on a register page about 2 weeks! but now i can use this ;)
@CheckSkills4 жыл бұрын
1:01 Great Start. Keep it Up
@RicardoBethancourt-i5t Жыл бұрын
Such a good tutorial. Thank you so much!
@dhruv99633 жыл бұрын
Wow, very valuable tutorial, many thanks, By the way i like your "sponsorship" 😂
@VicodeMedia3 жыл бұрын
I'm glad you liked it! That's what matters! 🙂
@minhaskhan71324 жыл бұрын
Thank you for "Custom registration Form" 😁
@VicodeMedia4 жыл бұрын
You're welcome
@stiviniii2 жыл бұрын
Hi Victor I'm getting this error after all the process (Fatal error: Uncaught ArgumentCountError: Too few arguments to function wc_maybe_store_user_agent(), 1 passed in C:\Users\Steven\Local Sites\afrohouseplans\app\public\wp-includes\class-wp-hook.php on line 307 and exactly 2 expected in C:\Users\Steven\Local Sites\afrohouseplans\app\public\wp-content\plugins\woocommerce\includes\wc-user-functions.php on line 856) but the user gets registered how do I come around this?
@VicodeMedia2 жыл бұрын
You are missing a parameter or something. Have you tried the source code from my GitHub repository?
@stiviniii2 жыл бұрын
@@VicodeMedia Thank you for your quick response, Yes I have copied everything from your Github repository.
@fabioruggirello652410 ай бұрын
Hi man...great tutorial, really! I ve question: what s the way to display all the form registration's info (fileds) in the backend user-edit.php?
@maciejmotawski9887 Жыл бұрын
Works very well, thank you!
@verylovetrip3 жыл бұрын
Thanks for your help !! Nice YT channel for Wordpress
@RamonLeonardoFabianRoman2 жыл бұрын
ERROR! Buenas, al utilizar wp_redirect( $url ); me sale el siguiente error, si alguien sabe como puedo solucionarlo lo agradeceria bastante: Cannot modify header information - headers already sent by (output started at ....functions.php:5579) in C:...\wp-includes\pluggable.php on line 1085
@WPCookie2 жыл бұрын
Yes, some WordPress functions have changed, you can see the updated version of the registration form in video number 27 on my channel.
@infoguillaume92253 жыл бұрын
Great tutorial! It is really clear and works perfectly for me. So much better than a plugin and I only have one concern about security. Should we only rely on wordpress? For instance is it necessary to sanitize the data and hash the password or wordpress will do the job? Is there any good practice around registration form just to be "sure" that the website is safe? Thank you for your work, I hope to see more tuto like this 👍
@VicodeMedia3 жыл бұрын
Thank you and you're welcome! It is necessary to sanitize the data. When it comes to passwords WordPress is hashing it automatically. All you have to do is store it as an md5 hash and then WordPress will encrypt it the way it should be. I don't see anything else to be worried about. Except adding a recaptcha maybe.
@infoguillaume92253 жыл бұрын
@@VicodeMedia Thank you for your answer!
@stefanbirsan33203 жыл бұрын
man, this is great and very helpful! I wish your channel would take off; Consider making your videos shorter and buying a new mic (or headphones with better mic) You can also prepare your code and just copy it from the other screen/laptop in order to avoid misspellings. Great content! An idea for a tutorial would be to add a new ad (for ads websites). Keep up the good work!
@VicodeMedia3 жыл бұрын
Thanks man!
2 жыл бұрын
I would like to put a option to choose a role. How can I do that?
@MrTheredkiwi333 жыл бұрын
Hi Vicode! I have used this tutorial and your login form tutorial on my wordpress website and now i want to create an "account" page where user can change informations like their name, password etc... I'm working with the same flow of register and login with a shortcode and data handle in function.php but now I have 3 differents hooks "add_action("init", )" and I feel like wordpress don't know wich one to call between every pages... Do you have a tip for specify which form action correspond to wich add_action ?
@VicodeMedia3 жыл бұрын
Hi, Hugo! Try to put everything under one add_action('init', 'combined_functions'); if possible. I am using it for validation here but you can add other code in the same function, or you can call other hooks here as well.
@MrTheredkiwi333 жыл бұрын
@@VicodeMedia thanks a lot ! I ve done it quite this way but I also migrated user gestion functions in a plugin. I Also added hidden input « form-type » with values « register », « login » or « account-modification » to check which form is called. Anyway, thank you so much for your tutorials it helped me so much through developpement of fully custom user gestion, it’s way more convenient to respect UX models to code it 100% manually instead of the boring overwriting of css from extensions like registration magic etc...
@DrogoNevets3 жыл бұрын
so when testing the error messages, i 1 dont get sent back to my register page (its not my home page) and all the error messages are cleared if i put a redirect it, any thoughts @Vicode Media?
@dhruv99633 жыл бұрын
Hi Victor, I'm facing issue with email, During new user creation, email not sending to the user and my SMTP is also set for this.
@MuhammadAdnan2.03 жыл бұрын
I have simple question.. how to register custom sidebar in woocommerce shop page... Theme development. ?
@jefphmichel57193 жыл бұрын
This was awesome. What if you wanted to have more than one usertype on registration?
@sedsajjadhosinianzade20992 жыл бұрын
Thank you it was great 👍👍
@michelemincone17882 жыл бұрын
Registration.php is not needed anymore
@pkg28853 жыл бұрын
Thank you, this is working very well ^_^ Is it possible to add "remember me" on the registration form or set the auto login session with time?
@michelemincone17882 жыл бұрын
Hello Man! Great tutorial, I really like it. I think that It is simple, but how would you create a login form?
@onelook18703 жыл бұрын
Please teach how to make custom theme from scratch!
@rajeshfhs23 жыл бұрын
Hi Nice video. very helpful. I have a query. Can we redirect to a specific page on signin and can a acknowledgement email go to user on successful registration?
@VicodeMedia3 жыл бұрын
Hi! To redirect the user after login use this function in your functions.php function admin_default_page() { return '/new-dashboard-url'; } add_filter('login_redirect', 'admin_default_page'); To send an email login credentials to a newly-registered user use this code: if ( !function_exists('wp_new_user_notification') ) { function wp_new_user_notification( $user_id, $plaintext_pass = '' ) { $user = new WP_User($user_id); $user_login = stripslashes($user->user_login); $user_email = stripslashes($user->user_email); $message = sprintf(__('New user registration on your blog %s:'), get_option('blogname')) . "rnrn"; $message .= sprintf(__('Username: %s'), $user_login) . "rnrn"; $message .= sprintf(__('E-mail: %s'), $user_email) . "rn"; @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), get_option('blogname')), $message); if ( empty($plaintext_pass) ) return; $message = __('Hi there,') . "rnrn"; $message .= sprintf(__("Welcome to %s! Here's how to log in:"), get_option('blogname')) . "rnrn"; $message .= wp_login_url() . "rn"; $message .= sprintf(__('Username: %s'), $user_login) . "rn"; $message .= sprintf(__('Password: %s'), $plaintext_pass) . "rnrn"; $message .= sprintf(__('If you have any problems, please contact me at %s.'), get_option('admin_email')) . "rnrn"; $message .= __('Adios!'); wp_mail($user_email, sprintf(__('[%s] Your username and password'), get_option('blogname')), $message); } }
@abdullashafi5804 жыл бұрын
but in my case where I can found the output (The registration page or form )?
@VicodeMedia4 жыл бұрын
You need to create a child theme and just overwrite or remove from there what woocommerce offers. You can also disable them using hooks and stuff like that. Take a look at these pages: developer.wordpress.org/themes/advanced-topics/child-themes/ docs.woocommerce.com/document/introduction-to-hooks-actions-and-filters/
@abdullashafi5804 жыл бұрын
@@VicodeMedia hello there , I have a child theme , now what should I do ? eagerly waiting for your reply !
@CarlosTorres-ge9wc4 жыл бұрын
Perfect tutorial... I need close session User from custom login 🤔
@VicodeMedia4 жыл бұрын
Can you be more specific please?
@hiimren3 жыл бұрын
for those short on time he starts coding at: 04:39
@richardkm53552 жыл бұрын
Lol. Gee he ranted for 4 minutes. Else great tut
@demonicafk-u86822 жыл бұрын
I'm trying to use this under Divi in my child theme, but it seems not working. I mean, the shortcode doesn't do anything. Any help please ? - EDIT : problem seems to be my network installation despite the fact i've installed a plugin that allows new user registration for subsites.. again, any help is appreciated XD thanks
@VicodeMedia2 жыл бұрын
Dude, it sounds like a lot going on on your project 😁 it's hard to advise you with anything but keep trying
@demonicafk-u86822 жыл бұрын
@@VicodeMedia LOL true, sorry for the lack of information! In the end i solved in another way so.. thank you XD
@EvaLasta4 жыл бұрын
This doesnt work, tons of errors and I had to change stuff and it doesn't log them in nor set the cookie
@VicodeMedia4 жыл бұрын
What kind of errors are you seeing?
@EvaLasta4 жыл бұрын
@@VicodeMedia Hey bro thanks for responding. So I had a fatal error and followed someones advice in the comment below: " used the code on an local installation with woocomerce and I got an error, that 2 inputs from the login are expected. So I changed on line 157 the code from do_action('wp_login', $user_login); to do_action('wp_login', $user_login,10,2);" And now it registers the user successfully with no errors but no matter what, it doesn't automatically sign them in on registration! It would be perfect if it logs them in on registration but I have no idea what to change to fix that. Im looking in the dev tools and I see that it is not setting the wp_logged_in_cookie but when I manually login with the account I registered it does. Do you have any idea what to do ? Thanks!
@EvaLasta4 жыл бұрын
I figured out a fix! Instead of "wp_set_auth_cookie($user_login, $user_pass, true); wp_set_current_user($new_user_id, $user_login); " you must use "wp_set_current_user($new_user_id); wp_set_auth_cookie($new_user_id);" Also I totally ditched the wp_login action line and its fine
@yanike4 жыл бұрын
Thank you!
@izzat27174 жыл бұрын
can someone teach me how to make registration fast??
@VicodeMedia4 жыл бұрын
Install woocommerce. It has login and registration form ready to use
@izzat27174 жыл бұрын
@@VicodeMedia how if the page for registration need to refresh in order to fill the form??
@VicodeMedia4 жыл бұрын
Just use ajax when submitting the form
@izzat27174 жыл бұрын
@@VicodeMedia Thank you so much, brother😭I’ll try your method....if anything goes wrong, I’ll be back here