Tag: wordpress security

How To Disable WordPress Automatic Update Email Notification

How to Disable WordPress automatic update email notification
As we all know WordPress, by default sends an email notification to the user that WordPress site is updated. Some time user has multiple WordPress sites so they get notification from each site.

Now, let me guide you to how you can disable update email notification. We have two methods to disable WordPress update email notification:
Method 1: Disable update email notification by code

In this method you need to add below code into your current theme’s functions.php file or you can create a custom plugin for it. Below code adds a filter to disable email notification after automatic core update.
add_filter( 'auto_core_update_send_email', 'stop_auto_update_email_notification' );
function stop_auto_update_email_notification( $send, $type, $core_update, $result ) {
    if ( ! empty( $type ) && $type == 'success' ) {
        return false;
    }
    return true;
}
Method 2: Disable update email notification by plugin
 
This is the most simpler way that does not require any code. You need to add Disable Core Update Email plugin.
Once downloaded, activate it and good to use. There are no settings of the plugin, you activate it and it simply disables email notification.
Hope this will ease your tasks and save time. Feel free to share any feedback, Hire WordPress Developer to fulfill your requirements we always ready to help you 🙂
Advertisements

Steps To Change Admin URL In WordPress Development Service

Change Admin URL
Let’s have a quick walk through regarding changing Admin URL with WordPress. As we all know that WordPress provides us less security compare to other CMS and Frameworks. So, in this case, to protect our website from hackers we need to perform several processes like protecting admin area, give fewer primitives to database etc.

If you have a WordPress site, then it is very easy to access admin URL of the login page. A Person who has basic knowledge of WordPress is known that by /wp-admin you can access admin page, or by /wp-login.php you can access the login page.
For the security purpose, we need to change Admin URL as well as Login page URL so that it is not easily accessible to others.

There are several plugins available in the market by which we can protect our admin area. Which are as follows:

  1. Protect wp-Admin
  2. Better WP Security
  3. Lockdown WP Admin

But, Here I am going to explain to you how we can achieve this using custom code:

You need to follow below three steps to change admin URL:

1) Add constants to wp-config.php file

define('WP_ADMIN_DIR', 'secret-folder'); 
define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH . WP_ADMIN_DIR);

2) Add below snippet in function.php file of your active theme

add_filter('site_url', 'wpadmin_filter', 10, 3); 
function wpadmin_filter( $url, $path, $orig_scheme ) { 
$old = array( "/(wp-admin)/"); 
$admin_dir = WP_ADMIN_DIR; 
$new = array($admin_dir); 
return preg_replace( $old, $new, $url, 1); 
}

3) Add below line to .htaccess file

RewriteRule ^secret-folder/(.*) wp-admin/$1?%{QUERY_STRING} [L]

By following above steps, you can access admin area using this URL.

Hope this helps you to make things work, feel free to leave your feedback..!!! Need more assistance Hire WordPress Developer…!