Last active
December 20, 2015 05:59
-
-
Save corradomatt/6082677 to your computer and use it in GitHub Desktop.
WordPress template file commenting for developers who want to help us out with which file is loading parts of a page.
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 | |
// Beginning of File | |
begin_template( __FILE__ ); | |
// End of File | |
end_template( __FILE__ ); |
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
function begin_template( $file ){ | |
?> <!-- begin <?php echo basename( $file ) . " [".basename( dirname( $file ) ) ."]" ; ?> --> | |
<?php | |
} | |
function end_template( $file ){ | |
?><!-- end <?php echo basename( $file ); ?> --> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment