WordPress is one of the most widely use Blog Engine today and many web developers are using WordPress
as CMS to build Blog, Personal and Business site, on past few days, I was working on a WordPress
site that needs Custom Registration functionality, you may see a lot of plugins out there to create
WordPress registration page but this tutorial might helpful to all web developer who interested to learn in
WordPress.
In this tutorial, I will explain how to make a WordPress custom registration page without using any plugin.
Steps to do,
=================
STEPS TO VALIDATE FORM FIELDS
==========================================
strpos($username, ' ')
empty($username)
username_exists( $username )
is_email( $email )
email_exists( $email )
Snippet of PHP Code:
=======================
get_header();
global $wpdb;
if ($_POST) { $username = $wpdb-]escape($_POST['txtUsername']); $email = $wpdb-]escape($_POST['txtEmail']); $password = $wpdb-]escape($_POST['txtPassword']); $ConfPassword = $wpdb-]escape($_POST['txtConfirmPassword']); $error = array(); if (strpos($username, ' ') !== FALSE) { $error['username_space'] = "Username has Space"; } if (empty($username)) { $error['username_empty'] = "Needed Username must"; } if (username_exists($username)) { $error['username_exists'] = "Username already exists"; } if (!is_email($email)) { $error['email_valid'] = "Email has no valid value"; } if (email_exists($email)) { $error['email_existence'] = "Email already exists"; } if (strcmp($password, $ConfPassword) !== 0) { $error['password'] = "Password didn't match"; } if (count($error) == 0) { wp_create_user($username, $password, $email); echo "User Created Successfully"; exit(); }else{ print_r($error); }
}
Important Videos to watch:
Customize Wordpress Login Page: https://www.youtube.com/watch?v=mzSTO3HtoPw
Wordpress Widget development in 1 video: https://www.youtube.com/watch?v=svPQ2csUtjI
Custom Login Wordpress: https://www.youtube.com/watch?v=HafkLf1EPdw
SOCIAL :
===============
Subscribe : https://www.youtube.com/channel/UCB2flCo-gW6RhpVVXySqcMg
FACEBOOK : https://www.facebook.com/onlinewebtutorhub/
TWITTER: https://twitter.com/owthub
BLOG: https://onlinewebtutorhub.blogspot.in/
Also you can learn Wordpress Custom
===============
Wordpress Theme Development: https://goo.gl/MZ8maF
Wordpress Widget Development: https://goo.gl/Dc2htn
Wordpress Plugin Development: https://goo.gl/BA7dYG
Wordpress Theme Options Development: https://goo.gl/Vjv3Ub
Learn backbone.js here! : https://goo.gl/Qd2Pcs
Tags
===============
WordPress Custom Registration Page/sign up,
customize wordpress registration page without plugin,
How to Create a Custom registration Page for WordPress,
Build a Custom WordPress registration/sign up,
How to Build a Custom WordPress registration Page,
wordpress custom registration url,
step by step registration page development in wordpress,
wordpress custom registration page tutorial in easy steps,
wordpress custom registration page,
customize wordpress registration page without plugin,,
wordpress custom registration form,
wordpress custom registration form code,
online web tutor,
profotech solutions,
Thanks
Online Web Tutor
Keep learning and Sharing :)