Object Cache Pro


Hiding the dashboard widget #

By default the dashboard widget is visible to all users with the rediscache_manage capability. In some scenarios you might want to hide the dashboard widget, or restrict access to certain roles.

* Remove the Redis Cache Pro dashboard widget.

add_action( 'wp_dashboard_setup', function () {
remove_meta_box( 'dashboard_rediscachepro', 'dashboard', 'normal' );
}, 20 );