Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WP action and callback function to inject CSS into admin head and hide comment activity
function remove_dashboard_comment_activity() {
echo '<style type="text/css">li.comment-count, li.comment-mod-count, #latest-comments, #wp-admin-bar-comments { display:none; }</style>';
add_action('admin_head', 'remove_dashboard_comment_activity');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.