Changeset 2043 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn/functions.php
- Timestamp:
- 11/05/2015 06:55:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn/functions.php
r4 r2043 22 22 } 23 23 24 /** 25 * Omit page name from front page title. 26 * 27 * @param array $parts The document title parts. 28 * @return array The document title parts. 29 */ 30 function learn_remove_frontpage_name_from_title( $parts ) { 31 if ( is_front_page() ) { 32 $parts['title'] = ''; 33 } 24 34 35 return $parts; 36 } 37 add_filter( 'document_title_parts', 'learn_remove_frontpage_name_from_title' ); 38
Note: See TracChangeset
for help on using the changeset viewer.