Skip to main content

How to Block a WordPress User Without Deleting Their Account

Do you want to block a WordPress user from your blog? The simplest way to achieve this is to delete their user profile, but it will remove them completely from your site. In this article, we will show you how to block a WordPress user without deleting their account.

Blocking a WordPress user without deleting their account

Why You Shouldn’t Delete a User Account?

The easiest way to block a WordPress user is by simply deleting their user account. However, deleting a user account in WordPress requires you to assign all their content to another user. This will change the author information for those articles.

One way to deal with this issue is to change the user’s password and email address by editing their user profile. This will block their access, and they will not be able to login. However, this will also change their Gravatar image.

Wouldn’t it be nice if you could block a user without actually deleting their user account? This way, no content will be moved, and you wouldn’t have to delete any user profile information.

The blocking feature can be really helpful for multi-author blogs, forums, as well as community sites.

Let’s take a look at how you can easily block a WordPress user without actually deleting their user account.

Blocking a WordPress User Without Deleting Their Account

First thing you need to do is to install and activate the User Blocker plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, the plugin will add a new menu item labeled ‘User Blocker’ to your WordPress admin menu. Clicking on it will take you to the plugin’s settings page which is divided into three tabs.

User blocker settings

Block User By Time

Under Block User By Time tab, you’ll see the list of all registered users. You can select a user and add the time range when you want this user to be blocked.

Block user by time

You can also block all users at once for a time range. Scroll down to block time option, add the time for each day separately, and click on the Apply to all button.

Add block time for users

Once added, you need to click on the Block User button below to save your changes.

Block User by Date

If you want to block the users by date, then you can go to Block User By Date tab. You can select users from the list and add a date range to block them for these dates.

Block users by date

You can also select all users at once and block them for a similar date range.

Block User Permanently

To permanently block a user, you need to visit Block User Permanent tab. From here you need to select the user and click on Block User button below.

Block user permanent

You’ll see their status changed to red.

Block User By Role

If your website has many user accounts, and you want to block users with a specific user role, then click on the Select User / Category drop-down and then select Role. This will now show a list of WordPress user roles. You need to select a role and click on the Block User button below to block all users with this user role.

Block user by role

Note: You can’t block the users with administrator user role and permissions.

In all these actions, you can add a generic message for the blocked users. You can also add a custom message for each user. If you leave the field blank, then it will display the default message to blocked users when they try to login to their account on your blog.

Custom message for blocked users

Once blocked, they will see an error message on the WordPress login page saying their account is temporarily or permanently blocked.

Login screen for blocked user

Note: You will need to keep the plugin installed and activated. Deactivating or deleting the plugin will automatically unblock all blocked users, and they will be able to login again.

How to Unblock a User Account?

To unblock a user, you need to visit User Blocker » Blocked User List page in your WordPress admin area. You’ll see the same 3 tabs as above with the list of blocked users categorized accordingly. There’s an additional Blocked User List tab that shows the list of blocked users from all 3 categories.

Blocked user list

You can go to Blocked User List tab and click on Reset option below each user to unblock them.

Reset blocked users

Once reset, the user can login to their account normally.

We hope this article helped you learn how to block a WordPress user without deleting their account. You may also want to see our complete guide on how to instantly switch between user accounts in WordPress to test new features on your blog.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Block a WordPress User Without Deleting Their Account appeared first on WPBeginner.

from: WPBeginner
via Editorial Staff

Source: How to Block a WordPress User Without Deleting Their Account Via Business Advice.

Comments

Popular posts from this blog

7 Ways to Grow Your SaaS Startup Faster

Every startup looks for ways to catapult a business to success. Here are some tips for accelerating growth for SaaS (software as a service) companies. 1. Start charging early SaaS startups are often hesitant about charging customers. They think that their product is not yet ready, that it’s necessary to get traction and focus on expanding their customer base rather than on growing revenue. Deep inside, however, they often don’t just have enough faith in their product and are not sure if someone will buy it at all. They prefer keeping hundreds or thousands of free users to attempting to win a few serious customers. Big numbers are comforting but the product remains an unverified idea. Building a product should imply increasing revenue. So don’t hesitate too much—put it to the test by charging and see if it works in the real conditions. This is one way to minimize your risk too. Instead of waiting to launch until you’ve invested huge amounts of time and money, launch early. If...

How to Add Web Push Notification to Your WordPress Site

Do you want to add push notifications to your WordPress site? Push notifications allow you to send notifications to users even when they are not visiting your website. In this article, we will show you how to easily add web push notifications to your WordPress site. We will also talk about the best WordPress push notification plugins and how to send desktop & mobile push notifications from your WordPress site. What is Push Notification? Push notifications are clickable messages displayed on top of user’s desktop or notification area on their mobile device. They can be shown even when the user’s browser is not open. Aside from desktop, web push notifications also work on mobile devices. This allows you to reach your users across devices with latest updates and offers. Web push notifications have proven to be a very effective way to convert website visitors into customers and loyal followers. Why Add Web Push Notifications to Your WordPress Site? We have already discussed tha...

7 Best WordPress Job Board Plugins and Themes

Are you looking for the best WordPress job board plugin? There are several WordPress job board plugins that you can use to easily create a job board and charge other companies to post jobs. It is one of the ways to make money from your blog , and you can even use it to post your own job openings. In this article, we have picked the best WordPress job board plugins and themes that you can use. Building a Job Board Website with WordPress WordPress is currently one of the most popular website builders in the market, powering more than 30% of all websites on the internet. It can be used to build almost any kind of website including a job board website. There are two types of WordPress websites which often confuses new users. First, there is WordPress.com which is a hosted solution. Second, you have WordPress.org also called self-hosted WordPress. See our article on WordPress.com vs WordPress.org for a side-by-side comparison. We recommend using self-hosted WordPress.org because it g...