Changeset 33274
- Timestamp:
- 07/14/2015 10:26:32 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/template.php
r33273 r33274 46 46 * Retrieve path of index template in current or parent template. 47 47 * 48 * The template path is filterable via the 'index_template' hook. 48 * The template path is filterable via the dynamic {@see '$type_template'} hook, 49 * e.g. 'index_template'. 49 50 * 50 51 * @since 3.0.0 … … 61 62 * Retrieve path of 404 template in current or parent template. 62 63 * 63 * The template path is filterable via the '404_template' hook. 64 * The template path is filterable via the dynamic {@see '$type_template'} hook, 65 * e.g. '404_template'. 64 66 * 65 67 * @since 1.5.0 … … 76 78 * Retrieve path of archive template in current or parent template. 77 79 * 78 * The template path is filterable via the 'archive_template' hook. 80 * The template path is filterable via the dynamic {@see '$type_template'} hook, 81 * e.g. 'archive_template'. 79 82 * 80 83 * @since 1.5.0 … … 101 104 * Retrieve path of post type archive template in current or parent template. 102 105 * 103 * The template path is filterable via the 'archive_template' hook. 106 * The template path is filterable via the dynamic {@see '$type_template'} hook, 107 * e.g. 'archive_template'. 104 108 * 105 109 * @since 3.7.0 … … 124 128 * Retrieve path of author template in current or parent template. 125 129 * 126 * The template path is filterable via the 'author_template' hook. 130 * The template path is filterable via the dynamic {@see '$type_template'} hook, 131 * e.g. 'author_template'. 127 132 * 128 133 * @since 1.5.0 … … 149 154 * Retrieve path of category template in current or parent template. 150 155 * 151 * Works by first retrieving the current slug, for example 'category-default.php', and then 152 * trying category ID, for example 'category-1.php', and will finally fall back to category.php 153 * template, if those files don't exist. 154 * 155 * The template path is filterable via the 'category_template' hook. 156 * Works by first retrieving the current slug, for example 'category-default.php', 157 * and then trying category ID, for example 'category-1.php', and will finally fall 158 * back to category.php template, if those files don't exist. 159 * 160 * The template path is filterable via the dynamic {@see '$type_template'} hook, 161 * e.g. 'category_template'. 156 162 * 157 163 * @since 1.5.0 … … 178 184 * Retrieve path of tag template in current or parent template. 179 185 * 180 * Works by first retrieving the current tag name, for example 'tag-wordpress.php', and then 181 * trying tag ID, for example 'tag-1.php', and will finally fall back to tag.php 182 * template, if those files don't exist. 183 * 184 * The template path is filterable via the 'tag_template' hook. 186 * Works by first retrieving the current tag name, for example 'tag-wordpress.php', 187 * and then trying tag ID, for example 'tag-1.php', and will finally fall back to 188 * tag.php template, if those files don't exist. 189 * 190 * The template path is filterable via the dynamic {@see '$type_template'} hook, 191 * e.g. 'tag_template'. 185 192 * 186 193 * @since 2.3.0 … … 216 223 * index.php. 217 224 * 218 * The template path is filterable via the 'taxonomy_template' hook. 225 * The template path is filterable via the dynamic {@see '$type_template'} hook, 226 * e.g. 'taxonomy_template'. 219 227 * 220 228 * @since 2.5.0 … … 242 250 * Retrieve path of date template in current or parent template. 243 251 * 244 * The template path is filterable via the 'date_template' hook. 252 * The template path is filterable via the dynamic {@see '$type_template'} hook, 253 * e.g. 'date_template'. 245 254 * 246 255 * @since 1.5.0 … … 260 269 * Attempts to locate 'home.php' first before falling back to 'index.php'. 261 270 * 262 * The template path is filterable via the 'home_template' hook. 271 * The template path is filterable via the dynamic {@see '$type_template'} hook, 272 * e.g. 'home_template'. 263 273 * 264 274 * @since 1.5.0 … … 299 309 * and finally 'page.php'. 300 310 * 301 * The template path is filterable via the 'page_template' hook. 311 * The template path is filterable via the dynamic {@see '$type_template'} hook, 312 * e.g. 'page_template'. 302 313 * 303 314 * @since 1.5.0 … … 334 345 * Retrieve path of paged template in current or parent template. 335 346 * 336 * The template path is filterable via the 'paged_template' hook. 347 * The template path is filterable via the dynamic {@see '$type_template'} hook, 348 * e.g. 'paged_template'. 337 349 * 338 350 * @since 1.5.0 … … 349 361 * Retrieve path of search template in current or parent template. 350 362 * 351 * The template path is filterable via the 'search_template' hook. 363 * The template path is filterable via the dynamic {@see '$type_template'} hook, 364 * e.g. 'search_template'. 352 365 * 353 366 * @since 1.5.0 … … 364 377 * Retrieve path of single template in current or parent template. 365 378 * 366 * The template path is filterable via the 'single_template' hook. 379 * The template path is filterable via the dynamic {@see '$type_template'} hook, 380 * e.g. 'single_template'. 367 381 * 368 382 * @since 1.5.0 … … 387 401 * Retrieves the path of the singular template in current or parent template. 388 402 * 389 * The template path is filterable via the {@see 'singular_template'} hook. 403 * The template path is filterable via the dynamic {@see '$type_template'} hook, 404 * e.g. 'singular_template'. 390 405 * 391 406 * @since 4.3.0 … … 410 425 * finally 'text-plain.php'. 411 426 * 412 * The template path is filterable via the 'attachment_template' hook. 427 * The template path is filterable via the dynamic {@see '$type_template'} hook, 428 * e.g. 'attachment_template'. 413 429 * 414 430 * @since 2.0.0
Note: See TracChangeset
for help on using the changeset viewer.