WPSEO_Sitemaps::get_last_modified()
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() WPSEO Sitemaps::get last modified Yoast 20.7
public function get_last_modified( $post_types ) { return YoastSEO()->helpers->date->format( self::get_last_modified_gmt( $post_types ) ); }