Created
December 15, 2018 01:20
-
-
Save irishquinn/dd0faa6a0d9a4c9f7a4f070dc44dad70 to your computer and use it in GitHub Desktop.
add current page-template CPT being used in footer
This file contains hidden or 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
| <?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