Changes between Initial Version and Version 1 of Ticket #18548, comment 87
- Timestamp:
- 04/04/2012 12:49:33 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18548, comment 87
initial v1 28 28 29 29 {{{ 30 !#php31 <?php32 30 $defaults = array( 33 31 'sep' => ' - ', … … 56 54 ), 57 55 ); 58 ?>59 56 }}} 60 57 … … 99 96 100 97 {{{ 101 !#php102 <?php103 98 add_theme_support( 'title-tag', array( 'sep' => ' → ' ) ); 104 ?>105 99 }}} 106 100 … … 108 102 109 103 {{{ 110 !#php111 <?php112 104 function example_supply_title( $title ) { 113 105 // Run conditional to determin if a new title needs to be supplied … … 115 107 } 116 108 add_action( 'title_tag_filter', 'example_supply_title' ); 117 ?>118 109 }}} 119 110 … … 123 114 124 115 {{{ 125 !#php126 <?php127 116 function example_replace_all_titles( $title ) { 128 117 // Code to load desired new title … … 130 119 } 131 120 add_action( 'pre_wp_title_tag', 'example_replace_all_titles' ); 132 ?>133 121 }}} 134 122 … … 136 124 137 125 {{{ 138 !#php139 <?php140 126 function example_modify_title_arguments( $arguments ) { 141 127 // Any necessary conditional code in case the modifications aren't static … … 147 133 } 148 134 add_filter( 'title_tag_options_filter', 'example_modify_title_arguments' ); 149 ?>150 135 }}} 151 136