Skip to content

Instantly share code, notes, and snippets.

@samk-dev
Last active February 16, 2023 17:08
Show Gist options
  • Save samk-dev/966645a2a713dedc4610e703c8882ac3 to your computer and use it in GitHub Desktop.
Save samk-dev/966645a2a713dedc4610e703c8882ac3 to your computer and use it in GitHub Desktop.
Loads admin template name inside wp admin
<?php
function enqueue_debug_scripts ($hook) {
echo "<p style='text-align:center;'>" .$hook. "</p>";
}
add_action('admin_enqueue_scripts', 'enqueue_debug_scripts');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment