Skip to content

Instantly share code, notes, and snippets.

@rabbitinblack
Created July 7, 2015 01:43
Show Gist options
  • Save rabbitinblack/bd23c93499a1bcc1724e to your computer and use it in GitHub Desktop.
Save rabbitinblack/bd23c93499a1bcc1724e to your computer and use it in GitHub Desktop.
/**
* Retrieve path of singular template in current or parent template.
*
* The template path is filterable via the 'singular_template' hook.
*
* @since 4.3.0
*
* @see get_query_template()
*
* @return string Full path to singular template file
*/
function get_singular_template() {
return get_query_template( 'singular' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment