Skip to content

Instantly share code, notes, and snippets.

@irishquinn
Created December 15, 2018 01:20
Show Gist options
  • Select an option

  • Save irishquinn/dd0faa6a0d9a4c9f7a4f070dc44dad70 to your computer and use it in GitHub Desktop.

Select an option

Save irishquinn/dd0faa6a0d9a4c9f7a4f070dc44dad70 to your computer and use it in GitHub Desktop.
add current page-template CPT being used in footer
<?php
// add to funtions.php
if ( ! is_admin() ) {
add_action( 'admin_bar_menu', 'show_template' );
function show_template() {
global $template;
print_r( $template );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment