Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18548, comment 87


Ignore:
Timestamp:
04/04/2012 12:49:33 AM (13 years ago)
Author:
chrisbliss18
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18548, comment 87

    initial v1  
    2828
    2929{{{
    30 !#php
    31 <?php
    3230$defaults = array(
    3331    'sep'                     => ' - ',
     
    5654    ),
    5755);
    58 ?>
    5956}}}
    6057
     
    9996
    10097{{{
    101 !#php
    102 <?php
    10398add_theme_support( 'title-tag', array( 'sep' => ' &rarr; ' ) );
    104 ?>
    10599}}}
    106100
     
    108102
    109103{{{
    110 !#php
    111 <?php
    112104function example_supply_title( $title ) {
    113105    // Run conditional to determin if a new title needs to be supplied
     
    115107}
    116108add_action( 'title_tag_filter', 'example_supply_title' );
    117 ?>
    118109}}}
    119110
     
    123114
    124115{{{
    125 !#php
    126 <?php
    127116function example_replace_all_titles( $title ) {
    128117    // Code to load desired new title
     
    130119}
    131120add_action( 'pre_wp_title_tag', 'example_replace_all_titles' );
    132 ?>
    133121}}}
    134122
     
    136124
    137125{{{
    138 !#php
    139 <?php
    140126function example_modify_title_arguments( $arguments ) {
    141127    // Any necessary conditional code in case the modifications aren't static
     
    147133}
    148134add_filter( 'title_tag_options_filter', 'example_modify_title_arguments' );
    149 ?>
    150135}}}
    151136