IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
42 | 42 | |
43 | 43 | $templates[] = 'header.php'; |
44 | 44 | |
| 45 | /** |
| 46 | * Filters the header templates. |
| 47 | * |
| 48 | * @since 4.8.0 |
| 49 | * |
| 50 | * @param array $templates Templates of all possible headers. |
| 51 | * @param string|null $name Name of the specific header file to use. |
| 52 | */ |
| 53 | $templates = apply_filters( 'get_header_templates', $templates, $name ); |
| 54 | |
45 | 55 | locate_template( $templates, true ); |
46 | 56 | } |
47 | 57 | |
… |
… |
|
81 | 91 | |
82 | 92 | $templates[] = 'footer.php'; |
83 | 93 | |
| 94 | /** |
| 95 | * Filters the footer templates. |
| 96 | * |
| 97 | * @since 4.8.0 |
| 98 | * |
| 99 | * @param array $templates Templates of all possible footers. |
| 100 | * @param string|null $name Name of the specific footer file to use. |
| 101 | */ |
| 102 | $templates = apply_filters( 'get_footer_templates', $templates, $name ); |
| 103 | |
84 | 104 | locate_template( $templates, true ); |
85 | 105 | } |
86 | 106 | |
… |
… |
|
119 | 139 | |
120 | 140 | $templates[] = 'sidebar.php'; |
121 | 141 | |
| 142 | /** |
| 143 | * Filters the sidebar templates. |
| 144 | * |
| 145 | * @since 4.8.0 |
| 146 | * |
| 147 | * @param array $templates Templates of all possible sidebars. |
| 148 | * @param string|null $name Name of the specific sidebar file to use. |
| 149 | */ |
| 150 | $templates = apply_filters( 'get_sidebar_templates', $templates, $name ); |
| 151 | |
122 | 152 | locate_template( $templates, true ); |
123 | 153 | } |
124 | 154 | |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
643 | 643 | } |
644 | 644 | } |
645 | 645 | |
| 646 | /** |
| 647 | * Filters the template location. |
| 648 | * |
| 649 | * @since 4.8.0 |
| 650 | * |
| 651 | * @param string $located Path to the template location. |
| 652 | * @param string|array $template_names Template file(s) to search for, in order. |
| 653 | * @param boolean $load If true the template file will be loaded if it is found. |
| 654 | * @param boolean $require_once Whether to require_once or require. Default true. Has no effect if $load is false. |
| 655 | */ |
| 656 | $located = apply_filters( 'located_template', $located, $template_names, $load, $require_once ); |
| 657 | |
646 | 658 | if ( $load && '' != $located ) |
647 | 659 | load_template( $located, $require_once ); |
648 | 660 | |