Switch language
wpseek on Twitter


A WordPress-centric search engine for devs and theme authors




get_the_modified_date [ ]

get_the_modified_date ( $d = '' )
Parameters:
  • (string) $d Optional. PHP date format. Defaults to the "date_format" option
Returns:
  • (string)
Defined at:
Codex



Retrieve the date on which the post was last modified.

Source

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 );
}

Top Google Search Results

More ...

User discussions [ wordpress.org ]

User Note(s)