wppaste
WordPress

apply_filters( 'the_date', string $the_date, string $format, string $before, string $after )

Since
0.71
Filters the date a post was published for display.

Parameters

$the_datestring
The formatted date string.
$formatstring
PHP date format.
$beforestring
HTML output before the date.
$afterstring
HTML output after the date.

Fired at · 1

  • wp-includes/general-template.php:2562the_date()

Source

	 *	 * @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.	 */	$the_date = apply_filters( 'the_date', $the_date, $format, $before, $after ); 	if ( $display ) {		echo $the_date;	} else {		return $the_date;	}

History

Introduced in 0.71. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.