WPSEO_Sitemaps::get_last_modified()publicYoast 1.0

Get the modification date for the last modified post in the post type.

Метод класса: WPSEO_Sitemaps{}

Хуков нет.

Возвращает

Строку.

Использование

$WPSEO_Sitemaps = new WPSEO_Sitemaps();
$WPSEO_Sitemaps->get_last_modified( $post_types );
$post_types(массив) (обязательный)
Post types to get the last modification date for.

Код WPSEO_Sitemaps::get_last_modified() Yoast 22.4

public function get_last_modified( $post_types ) {
	return YoastSEO()->helpers->date->format( self::get_last_modified_gmt( $post_types ) );
}