You appear to be a bot. Output may be restricted
Description
Usage
Tests_Template::get_template_hierarchy();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/template.php
Lines:
1 to 14 of 14
protected function get_template_hierarchy() { foreach ( self::get_query_template_conditions() as $type => $condition ) { if ( call_user_func( $condition ) ) { $filter = str_replace( '_', '', $type ); add_filter( "{$filter}_template_hierarchy", array( $this, 'log_template_hierarchy' ) ); call_user_func( "get_{$type}_template" ); remove_filter( "{$filter}_template_hierarchy", array( $this, 'log_template_hierarchy' ) ); } } $hierarchy = $this->hierarchy; $this->hierarchy = array(); return $hierarchy; }