Custom Registration/Sign Up Page Without Using a Plugin step by step tutorial for beginner WordPress

وردپرس سیتی (شهر وردپرس)
منتشر شده در 14 دی 1398

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,

=================

  1. Create a Wordpress Page.
  2. Create a Template in Theme's Folder.
  3. Assign template to Page.
  4. Do registration form to template file.
  5. Apply form data validations.
  6. Create wordpress user.

STEPS TO VALIDATE FORM FIELDS

==========================================


  1. Check no space within username:

strpos($username, ' ')


  1. Check username must have value:

empty($username)


  1. Check username existence:

username_exists( $username )


  1. Check email validation

is_email( $email )


  1. Check email existence

email_exists( $email )


  1. Password matched or not

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 :)

دیدگاه کاربران