Skip to content

Instantly share code, notes, and snippets.

@allysonsouza
Last active September 27, 2021 17:58
Show Gist options
  • Save allysonsouza/93326553dec8de4923d2 to your computer and use it in GitHub Desktop.
Save allysonsouza/93326553dec8de4923d2 to your computer and use it in GitHub Desktop.
[WordPress Template] Shows which template WordPress is using to show the current site content #wordpress
<?php
add_action('wp_head', function() {
global $template;
echo $template;
});
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment