Skip to content

Instantly share code, notes, and snippets.

@korabh
Created April 11, 2013 12:42
Show Gist options
  • Save korabh/5363081 to your computer and use it in GitHub Desktop.
Save korabh/5363081 to your computer and use it in GitHub Desktop.
Display $hook_suffix as admin notice
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