Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



get_the_modified_date ›

Seit2.1.0
Veraltetn/v
get_the_modified_date ( $d = '' )
Parameter:
  • (string) $d Optional. PHP date format. Defaults to the "date_format" option
    Erforderlich: Nein
    Standard: (leer)
Gibt zurück:
  • (string)
Definiert in:
Codex:

Retrieve the date on which the post was last modified.



Quellcode

function get_the_modified_date($d = '') {
	if ( '' == $d )
		$the_time = get_post_modified_time(get_option('date_format'), null, null, true);
	else
		$the_time = get_post_modified_time($d, null, null, true);

	/**
	 * Filter the date a post was last modified.
	 *
	 * @since 2.1.0
	 *
	 * @param string $the_time The formatted date.
	 * @param string $d        PHP date format. Defaults to value specified in
	 *                         'date_format' option.
	 */
	return apply_filters( 'get_the_modified_date', $the_time, $d );
}