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’ );

Leave a Reply

Your email address will not be published.