WordPress Custom Registration Form | No Plugins

  Рет қаралды 17,460

Vicode Media

Vicode Media

Күн бұрын

Пікірлер: 58
@acgstudios2492
@acgstudios2492 2 жыл бұрын
Man finally someone put the pieces together. You rock thanks man!
@aabozaid7
@aabozaid7 Жыл бұрын
Loved the way you illustrate with, and thanks not many people talk about custom registration, thanks man.
@webhunter98
@webhunter98 2 жыл бұрын
bro u saved me! ive been working on a register page about 2 weeks! but now i can use this ;)
@CheckSkills
@CheckSkills 4 жыл бұрын
1:01 Great Start. Keep it Up
@RicardoBethancourt-i5t
@RicardoBethancourt-i5t Жыл бұрын
Such a good tutorial. Thank you so much!
@dhruv9963
@dhruv9963 3 жыл бұрын
Wow, very valuable tutorial, many thanks, By the way i like your "sponsorship" 😂
@VicodeMedia
@VicodeMedia 3 жыл бұрын
I'm glad you liked it! That's what matters! 🙂
@minhaskhan7132
@minhaskhan7132 4 жыл бұрын
Thank you for "Custom registration Form" 😁
@VicodeMedia
@VicodeMedia 4 жыл бұрын
You're welcome
@stiviniii
@stiviniii 2 жыл бұрын
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?
@VicodeMedia
@VicodeMedia 2 жыл бұрын
You are missing a parameter or something. Have you tried the source code from my GitHub repository?
@stiviniii
@stiviniii 2 жыл бұрын
@@VicodeMedia Thank you for your quick response, Yes I have copied everything from your Github repository.
@fabioruggirello6524
@fabioruggirello6524 10 ай бұрын
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
@maciejmotawski9887 Жыл бұрын
Works very well, thank you!
@verylovetrip
@verylovetrip 3 жыл бұрын
Thanks for your help !! Nice YT channel for Wordpress
@RamonLeonardoFabianRoman
@RamonLeonardoFabianRoman 2 жыл бұрын
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
@WPCookie
@WPCookie 2 жыл бұрын
Yes, some WordPress functions have changed, you can see the updated version of the registration form in video number 27 on my channel.
@infoguillaume9225
@infoguillaume9225 3 жыл бұрын
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 👍
@VicodeMedia
@VicodeMedia 3 жыл бұрын
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.
@infoguillaume9225
@infoguillaume9225 3 жыл бұрын
@@VicodeMedia Thank you for your answer!
@stefanbirsan3320
@stefanbirsan3320 3 жыл бұрын
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!
@VicodeMedia
@VicodeMedia 3 жыл бұрын
Thanks man!
2 жыл бұрын
I would like to put a option to choose a role. How can I do that?
@MrTheredkiwi33
@MrTheredkiwi33 3 жыл бұрын
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 ?
@VicodeMedia
@VicodeMedia 3 жыл бұрын
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.
@MrTheredkiwi33
@MrTheredkiwi33 3 жыл бұрын
@@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...
@DrogoNevets
@DrogoNevets 3 жыл бұрын
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?
@dhruv9963
@dhruv9963 3 жыл бұрын
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.0
@MuhammadAdnan2.0 3 жыл бұрын
I have simple question.. how to register custom sidebar in woocommerce shop page... Theme development. ?
@jefphmichel5719
@jefphmichel5719 3 жыл бұрын
This was awesome. What if you wanted to have more than one usertype on registration?
@sedsajjadhosinianzade2099
@sedsajjadhosinianzade2099 2 жыл бұрын
Thank you it was great 👍👍
@michelemincone1788
@michelemincone1788 2 жыл бұрын
Registration.php is not needed anymore
@pkg2885
@pkg2885 3 жыл бұрын
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?
@michelemincone1788
@michelemincone1788 2 жыл бұрын
Hello Man! Great tutorial, I really like it. I think that It is simple, but how would you create a login form?
@onelook1870
@onelook1870 3 жыл бұрын
Please teach how to make custom theme from scratch!
@rajeshfhs2
@rajeshfhs2 3 жыл бұрын
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?
@VicodeMedia
@VicodeMedia 3 жыл бұрын
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); } }
@abdullashafi580
@abdullashafi580 4 жыл бұрын
but in my case where I can found the output (The registration page or form )?
@VicodeMedia
@VicodeMedia 4 жыл бұрын
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/
@abdullashafi580
@abdullashafi580 4 жыл бұрын
@@VicodeMedia hello there , I have a child theme , now what should I do ? eagerly waiting for your reply !
@CarlosTorres-ge9wc
@CarlosTorres-ge9wc 4 жыл бұрын
Perfect tutorial... I need close session User from custom login 🤔
@VicodeMedia
@VicodeMedia 4 жыл бұрын
Can you be more specific please?
@hiimren
@hiimren 3 жыл бұрын
for those short on time he starts coding at: 04:39
@richardkm5355
@richardkm5355 2 жыл бұрын
Lol. Gee he ranted for 4 minutes. Else great tut
@demonicafk-u8682
@demonicafk-u8682 2 жыл бұрын
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
@VicodeMedia
@VicodeMedia 2 жыл бұрын
Dude, it sounds like a lot going on on your project 😁 it's hard to advise you with anything but keep trying
@demonicafk-u8682
@demonicafk-u8682 2 жыл бұрын
@@VicodeMedia LOL true, sorry for the lack of information! In the end i solved in another way so.. thank you XD
@EvaLasta
@EvaLasta 4 жыл бұрын
This doesnt work, tons of errors and I had to change stuff and it doesn't log them in nor set the cookie
@VicodeMedia
@VicodeMedia 4 жыл бұрын
What kind of errors are you seeing?
@EvaLasta
@EvaLasta 4 жыл бұрын
@@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!
@EvaLasta
@EvaLasta 4 жыл бұрын
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
@yanike
@yanike 4 жыл бұрын
Thank you!
@izzat2717
@izzat2717 4 жыл бұрын
can someone teach me how to make registration fast??
@VicodeMedia
@VicodeMedia 4 жыл бұрын
Install woocommerce. It has login and registration form ready to use
@izzat2717
@izzat2717 4 жыл бұрын
@@VicodeMedia how if the page for registration need to refresh in order to fill the form??
@VicodeMedia
@VicodeMedia 4 жыл бұрын
Just use ajax when submitting the form
@izzat2717
@izzat2717 4 жыл бұрын
@@VicodeMedia Thank you so much, brother😭I’ll try your method....if anything goes wrong, I’ll be back here
Elementor Pro Login Popup
25:33
The Digital Alchemist
Рет қаралды 30 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 47 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 135 МЛН
路飞做的坏事被拆穿了 #路飞#海贼王
00:41
路飞与唐舞桐
Рет қаралды 26 МЛН
WordPress Custom Fields for Custom Post Type
42:12
Vicode Media
Рет қаралды 15 М.
Custom WordPress Form with reCAPTCHA v3 | Create Plugin
48:41
Vicode Media
Рет қаралды 4 М.
Custom Database Queries in WordPress | WordPress Tutorials
24:39
Joshua Herbison
Рет қаралды 65 М.
React.js Registration Form using WordPress API
39:42
Vicode Media
Рет қаралды 9 М.
Build a Useful Wordpress Widget Plugin
44:39
Traversy Media
Рет қаралды 92 М.
How To Make Custom Registration And Login Forms In WordPress
8:08