WordPress

How To Deal with Auto-Draft Posts Getting Created by Themselves

I discovered many blank draft posts appeared on one of the websites I managed. I firstly freaked out and thought the site might have got hacked but after a few searching and troubleshooting digging, I noticed that it could be just one of the Dashboard widgets, namely Quick Draft or Quick Press widgets, that was trying to mess up with me.

You could easily disable it from Screen Options if you are the only one managing the website. But if not, it’s better to use this plugin called WP Widget Disable to disable it for good.

Install and activate the plugin and then go to Appearance > Disable Widgets, switch to the Dashboard Widgets tab, check Quick Draft from the list and click the Save Changes button.

If adding another plugin isn’t your preferred choice, you can also add the following code to the theme’s functions.php file to achieve the same.

function remove_dashboard_widgets() {
    global $wp_meta_boxes;
    unset($wp_meta_boxes[‘dashboard’][‘side’][‘core’][‘dashboard_quick_press’]);
}
add_action(‘wp_dashboard_setup’, ‘remove_dashboard_widgets’ );
edge

Share
Published by
edge
Tags: WordPress

Recent Posts

Disable Copilot on Windows 11 via Group Policy GPO

If using Copilot right from the Taskbar isn't your thing, you should disable it. Even…

7 months ago

Setting Default Fonts in Word, Excel, Outlook, and PowerPoint via Group Policy

In an environment where standardizing things does matter, setting default fonts in Microsoft Office apps…

8 months ago

Wake-On-LAN (WOL) with Windows and PowerShell

Wake-On-LAN is a networking standard that lets you wake up a computer from either a…

8 months ago

How To Remove Restrictions Set in A Password-Protected PDF File

First of all, this is not to bypass a PDF file that requires a password…

8 months ago

How To Move My Outlook Navigation Bar Back From Left Back To the Bottom

Microsoft has been lurking about the idea of placing the Outlook navigation bar to the…

2 years ago

Headset with Microphone Echoing My Own Voice on Windows, What To Do?

One colleague came up to me the other day asking me to take look at…

2 years ago