Created
April 11, 2013 12:42
-
-
Save korabh/5363081 to your computer and use it in GitHub Desktop.
Display $hook_suffix as admin notice
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
add_action( 'admin_notices', 'wps_print_admin_pagehook' ); | |
function wps_print_admin_pagehook(){ | |
global $hook_suffix; | |
if( !current_user_can( 'manage_options') ) | |
return; | |
?> | |
<div class="error"><p><?php echo $hook_suffix; ?></p></div> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment