the_date filter-hookWP 0.71

Filters the date a post was published for display.

Usage

add_filter( 'the_date', 'wp_kama_the_date_filter', 10, 4 );

/**
 * Function for `the_date` filter-hook.
 * 
 * @param string $the_date The formatted date string.
 * @param string $format   PHP date format.
 * @param string $before   HTML output before the date.
 * @param string $after    HTML output after the date.
 *
 * @return string
 */
function wp_kama_the_date_filter( $the_date, $format, $before, $after ){

	// filter...
	return $the_date;
}
$the_date(string)
The formatted date string.
$format(string)
PHP date format.
$before(string)
HTML output before the date.
$after(string)
HTML output after the date.

Changelog

Since 0.71 Introduced.

Where the hook is called

the_date()
the_date
wp-includes/general-template.php 2548
$the_date = apply_filters( 'the_date', $the_date, $format, $before, $after );

Where the hook is used in WordPress

Usage not found.