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 Login page functionality, you may see a lot of plugins out there to create
WordPress login page but this tutorial might helpful to all web developer who interested to learn in
WordPress.
#WordpressTutorialsPoint
#WordpressLearnersHub
#WordpressCustomizations
#LearnWordpressStepbyStep
#WordpressBySanjay
In this tutorial, I will explain how to make a WordPress custom login page without using any plugin.
Steps to make custom login page
===========
1. Make a Wordpress page
2. Make a template in theme's folder
3. Assign created template to Wordpress page.
4. Do code of login on Template file
5. Need to change some redirect urls after logout or for wp-admin
PHP code
================
This contains php script to validate and accept posted data from our HTML form.
global $wpdb;
$err = '';
$success = '';
if(isset($_POST['task']) && $_POST['task'] == 'login' )
{
//We shall SQL escape all inputs to avoid sql injection.
$username = $wpdb-]escape($_POST['log']);
$password = $wpdb-]escape($_POST['pwd']);
$remember = $wpdb-]escape($_POST['remember']);
if( $username == "" || $password == "" ) {
$err = 'Please don\'t leave the required field.';
} else {
$user_data = array();
$user_data['user_login'] = $username;
$user_data['user_password'] = $password;
$user_data['remember'] = $remember;
$user = wp_signon( $user_data, false );
if ( is_wp_error($user) ) {
$err = $user-]get_error_message();
exit();
} else {
wp_set_current_user( $user-]ID, $username );
do_action('set_current_user');
echo '[script type="text/javascript"]window.location='. get_bloginfo('url') .'[/script]';
exit();
}
}
}
Confused
============
Okay, let me explain further the lists of WordPress function we’re using.
is_wp_error: this will check whether variable is a WordPress Error.
wp_set_current_user: We use this wordpress built in function because many user report when using
wp_signon() function logs a user in but for some reason the global user variables such as $current_user
and $user_ID are not populated until the page is refreshed and calling get_currentuserinfo() doesn’t
populate as well. The is_user_logged_in() function also returns false.
Important Videos to watch:
Customize Wordpress Login Page:
https://www.youtube.com/watch?v=mzSTO3HtoPwWordpress Widget development in 1 video:
https://www.youtube.com/watch?v=svPQ2csUtjISOCIAL :
===============
Subscribe :
https://www.youtube.com/channel/UCB2flCo-gW6RhpVVXySqcMgFACEBOOK :
https://www.facebook.com/onlinewebtutorhub/TWITTER:
https://twitter.com/owthubBLOG:
https://onlinewebtutorhub.blogspot.in/Also you can learn Wordpress Custom
===============
Wordpress Theme Development:
https://goo.gl/MZ8maFWordpress Widget Development:
https://goo.gl/Dc2htnWordpress Plugin Development:
https://goo.gl/BA7dYG Wordpress Theme Options Development:
https://goo.gl/Vjv3UbLearn backbone.js here! :
https://goo.gl/Qd2PcsTags
===============
WordPress Custom Login Page,
customize wordpress login page without plugin,
How to Create a Custom Login Page for WordPress,
Build a Custom WordPress Login,
How to Build a Custom-Made WordPress Login Page,
wordpress custom login url,
step by step login page development in wordpress,
wordpress custom login page tutorial in easy steps,
wordpress custom login page,
customize wordpress login page without plugin,,
wordpress custom login form,
wordpress custom login form code,
online web tutor,
profotech solutions,
Thanks
Online Web Tutor
Keep learning and Sharing :)
About the Site 🌐
This site provides links to random videos hosted at YouTube, with the emphasis on random. 🎥
Origins of the Idea 🌱
The original idea for this site stemmed from the need to benchmark the popularity of a video against the general population of YouTube videos. 🧠
Challenges Faced 🤔
Obtaining a large sample of videos was crucial for accurate ranking, but YouTube lacks a direct method to gather random video IDs.
Even searching for random strings on YouTube doesn't yield truly random results, complicating the process further. 🔍
Creating Truly Random Links 🛠️
The YouTube API offers additional functions enabling the discovery of more random videos. Through inventive techniques and a touch of space-time manipulation, we've achieved a process yielding nearly 100% random links to YouTube videos.
About YouTube 📺
YouTube, an American video-sharing website based in San Bruno, California, offers a diverse range of user-generated and corporate media content. 🌟
Content and Users 🎵
Users can upload, view, rate, share, and comment on videos, with content spanning video clips, music videos, live streams, and more.
While most content is uploaded by individuals, media corporations like CBS and the BBC also contribute. Unregistered users can watch videos, while registered users enjoy additional privileges such as uploading unlimited videos and adding comments.
Monetization and Impact 🤑
YouTube and creators earn revenue through Google AdSense, with most videos free to view. Premium channels and subscription services like YouTube Music and YouTube Premium offer ad-free streaming.
As of February 2017, over 400 hours of content were uploaded to YouTube every minute, with the site ranking as the second-most popular globally. By May 2019, this figure exceeded 500 hours per minute. 📈
List of ours generators⚡
Random YouTube Videos Generator
Random Film and Animation Video Generator
Random Autos and Vehicles Video Generator
Random Music Video Generator
Random Pets and Animals Video Generator
Random Sports Video Generator
Random Travel and Events Video Generator
Random Gaming Video Generator
Random People and Blogs Video Generator
Random Comedy Video Generator
Random Entertainment Video Generator
Random News and Politics Video Generator
Random Howto and Style Video Generator
Random Education Video Generator
Random Science and Technology Video Generator
Random Nonprofits and Activism Video Generator