Last active
January 18, 2016 20:02
-
-
Save nathaningram/a25f5bbcaf2a01ac0bde to your computer and use it in GitHub Desktop.
Hides WP Help Functions for Non-Admins
This file contains hidden or 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
| // Hides WP Help Functions for Non-Admins | |
| // Add to the functions.php of your active child theme | |
| function ni_hide_wphelp_actions() { | |
| echo '<style type="text/css"> | |
| #cws-wp-help-actions {display:none !important;} | |
| </style>'; | |
| } | |
| if ( ! current_user_can('administrator') ) { | |
| add_action('admin_head', 'ni_hide_wphelp_actions'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment