the_weekday_date
Filters the localized date on which the post was written, for display.
Description
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.
- $the_weekday_date = apply_filters( 'the_weekday_date', $the_weekday_date, $before, $after );
- if ( !empty( $the_weekday_date ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the the_weekday_date callback
- function filter_the_weekday_date( $the_weekday_date, $before, $after ) {
- // make filter magic happen here...
- return $the_weekday_date;
- };
- // add the filter
- add_filter( 'the_weekday_date', 'filter_the_weekday_date', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the filter
- 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
- $the_weekday_date = apply_filters( 'the_weekday_date', $the_weekday_date, $before, $after );