- Timestamp:
- 02/25/2016 12:52:33 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php
r31250 r36709 9 9 * will designate a featured post tag to associate posts with. Since 10 10 * this tag now has special meaning beyond that of a normal tags, users 11 * will have the ability to hide it from the front -end of their site.11 * will have the ability to hide it from the front end of their site. 12 12 */ 13 13 class Featured_Content { … … 96 96 97 97 /** 98 * Hide "featured" tag from the front -end.98 * Hide "featured" tag from the front end. 99 99 * 100 100 * Has to run on wp_loaded so that the preview filters of the Customizer … … 289 289 290 290 /** 291 * Hide featured tag from displaying when global terms are queried from the front -end.291 * Hide featured tag from displaying when global terms are queried from the front end. 292 292 * 293 293 * Hooks into the "get_terms" filter. … … 305 305 public static function hide_featured_term( $terms, $taxonomies, $args ) { 306 306 307 // This filter is only appropriate on the front -end.307 // This filter is only appropriate on the front end. 308 308 if ( is_admin() ) { 309 309 return $terms; … … 337 337 /** 338 338 * Hide featured tag from display when terms associated with a post object 339 * are queried from the front -end.339 * are queried from the front end. 340 340 * 341 341 * Hooks into the "get_the_terms" filter. … … 354 354 public static function hide_the_featured_term( $terms, $id, $taxonomy ) { 355 355 356 // This filter is only appropriate on the front -end.356 // This filter is only appropriate on the front end. 357 357 if ( is_admin() ) { 358 358 return $terms;
Note: See TracChangeset
for help on using the changeset viewer.