the_weekday_date

Filters the localized date on which the post was written, for display.

Description

apply_filters( 'the_weekday_date', (string) $the_weekday_date, (string) $before, (string) $after ); 

Parameters (3)

0. $the_weekday_date (string)
The weekday date.
1. $before (string)
The HTML to output before the date.
2. $after (string)
The HTML to output after the date.

Usage

To run the hook, copy the example below.
  1. $the_weekday_date = apply_filters( 'the_weekday_date', $the_weekday_date, $before, $after ); 
  2.  
  3. if ( !empty( $the_weekday_date ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the the_weekday_date callback 
  2. function filter_the_weekday_date( $the_weekday_date, $before, $after ) { 
  3. // make filter magic happen here... 
  4. return $the_weekday_date
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'the_weekday_date', 'filter_the_weekday_date', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'the_weekday_date', 'filter_the_weekday_date', 10, 3 ); 

Defined (1)

The filter is defined in the following location(s).

/wp-includes/general-template.php  
  1. $the_weekday_date = apply_filters( 'the_weekday_date', $the_weekday_date, $before, $after );