Created
February 13, 2018 19:26
-
-
Save eudesgit/5a7739844cb2be77911fe342a1ce3da3 to your computer and use it in GitHub Desktop.
How to get WP file header data for a page template
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 | |
// Gets Template Name from the file | |
$filedata = get_file_data($full_path, array( | |
'Template Name' => 'Template Name', | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment