By default, USP Pro adds two items to the WordPress Dashboard: the submitted-posts widget and some “At a Glance” items. This quick tutorial explains how (and why) to disable either (or both) of the dashboard items with a few lines of code.
Why would you want to?
There are numerous reasons why it may be optimal to disable unnecessary dashboard functionality. Some examples include things like branding the Admin Area for clients. Or customizing the dashboard for specific administrators. Or simplifying things to improve performance. Whatever the reason, the latest version of USP Pro makes it easy to do.
Disable the Dashboard Widget
To disable the dashboard widget, add the following code to your theme (or child theme) functions.php
, or add via simple custom plugin.
function usp_dashboard_widget($disable) { return true; }
add_filter('usp_dashboard_widget', 'usp_dashboard_widget');
No changes required. Upload and done.
Disable the “At a Glance” Items
To disable the “At a Glance” items, add the following code to your theme (or child theme) functions.php
, or add via simple custom plugin.
function usp_add_glance_items($disable) { return true; }
add_filter('usp_add_glance_items', 'usp_add_glance_items');
No changes required. Upload and done.