{"id":1514,"date":"2014-04-25T06:03:13","date_gmt":"2014-04-25T06:03:13","guid":{"rendered":"http:\/\/developer.wordpress.org\/reference\/functions\/locate_template\/"},"modified":"2026-02-24T05:37:10","modified_gmt":"2026-02-24T05:37:10","slug":"locate_template","status":"publish","type":"wp-parser-function","link":"https:\/\/developer.wordpress.org\/reference\/functions\/locate_template\/","title":{"rendered":"locate_template()"},"excerpt":{"rendered":"<p>Retrieves the name of the highest priority template file that exists.<\/p>\n","protected":false},"comment_status":"open","ping_status":"open","template":"","meta":{"_crdt_document":"","footnotes":""},"wp-parser-source-file":[103],"wp-parser-package":[41,3],"wp-parser-since":[13,1075],"class_list":["post-1514","wp-parser-function","type-wp-parser-function","status-publish","hentry","wp-parser-source-file-wp-includes_template-php","wp-parser-package-template","wp-parser-package-wordpress","wp-parser-since-2-7-0","wp-parser-since-5-5-0"],"revision_note":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function\/1514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function"}],"about":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/types\/wp-parser-function"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/comments?post=1514"}],"version-history":[{"count":6,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function\/1514\/revisions"}],"predecessor-version":[{"id":153115,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function\/1514\/revisions\/153115"}],"wp:attachment":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/media?parent=1514"}],"wp:term":[{"taxonomy":"wp-parser-source-file","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-source-file?post=1514"},{"taxonomy":"wp-parser-package","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-package?post=1514"},{"taxonomy":"wp-parser-since","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-since?post=1514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}