Last active
March 16, 2016 16:27
-
-
Save lstanard/5a36b7d30aa589381f73 to your computer and use it in GitHub Desktop.
WP action and callback function to inject CSS into admin head and hide comment activity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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