Techyadda
296 FOLLOWERS
Techyadda is a Blog and Website Development website run by a freelancer who loves doing his work and converting online ideas to reality.
Techyadda
4y ago
In this article, we will learn how to create new user in WordPress using custom coding. As a WordPress Developer, it’s a quite common task to add users using code at backend rather than registering it through the frontend.
Here I am sharing a handy code snippet which you can use to add user through coding easily in WordPress using email address only.
Code to create new user
// Firsty we check if email_address exists or not
if(!username_exists( $email_address ) ) {
// Generate the password for user
$password = wp_generate_password( 14, false );
// Using wp_create_user to add new ..read more
Techyadda
4y ago
Introduction
In this article, we are going to study how we can add dependent dropdown in PHP, Ajax, and Mysql. Some people feel adding dependent dropdown is a daunting task but it’s quite easy and with little practice, you can easily understand it’s implementation.
Benefits
The most obvious benefit it will provide your website is that it will allow increase performance of the website as only required data is loaded on fetch and also it will give a better user experience which will give a premium feel to your website or application.
Getting Database Ready
In this article we a ..read more
Techyadda
4y ago
Do you want your WordPress site to load quicky or want to decrease your bounce rate due to slow Website? The open source platform of Website provides various options to optimize your website and that also for absolutely free of cost . Yea that’s the beauty of WordPress. I am recommending the above plugins from my personal experience as WordPress Developer and based on that I am picking Best 4 plugins for Site Optimization on WordPress for free of cost.
Best WordPress Plugins for Site Speed Optimization
4 Free Best WordPress Plugins to Speed Up Website
1. Autoptimize
On the to ..read more
Techyadda
4y ago
In this tutorial, we will be learning how we can validate email in PHP easily.
<?php
// Techyadda.in PHP program to validate email
// Function to validate email in PHP
function email_validator($email) {
return (!preg_match(
"^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$^", $str))
? FALSE : TRUE;
}
// Here we are calling function
if(!email_validator("techyadda19@gmail.com")) {
echo "Email address not valid.";
}
else {
echo "Valid email address.";
}
?>
So using the above function you can easily validate email in PHP ..read more
Techyadda
4y ago
In this blog, we will be adding google Recaptcha v2 to the PHP website with Ajax.
Get Website Site Key and Secret key
1. Get your Website site key and secret key which we will require forGoogle Recaptcha v2 integration. For that visit https://www.google.com/recaptcha/intro/v3.html and click on Admin Console.
2. On next page click on Add site option after signing in with your Google account
3. Next, fill website name in label, select ReCaptcha v2 and in domain enter your domain address as shown. Accept terms and conditions and click on Submit.
4. Copy your site key and secret k ..read more
Techyadda
4y ago
In this tutorial, we will be learning how we can validate email in PHP easily.
<?php
// Techyadda.in PHP program to validate email
// Function to validate email in PHP
function email_validator($email) {
return (!preg_match(
"^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$^", $str))
? FALSE : TRUE;
}
// Here we are calling function
if(!email_validator("techyadda19@gmail.com")) {
echo "Email address not valid.";
}
else {
echo "Valid email address.";
}
?>
So using the above function you can easily validate email in PHP ..read more
Techyadda
4y ago
In this blog, we will be adding google Recaptcha v2 to the PHP website with Ajax.
Get Website Site Key and Secret key
1. Get your Website site key and secret key which we will require forGoogle Recaptcha v2 integration. For that visit https://www.google.com/recaptcha/intro/v3.html and click on Admin Console.
2. On next page click on Add site option after signing in with your Google account
3. Next, fill website name in label, select ReCaptcha v2 and in domain enter your domain address as shown. Accept terms and conditions and click on Submit.
4. Copy your site key and secret k ..read more