WPSEO_Replace_Vars::retrieve_modified
Retrieve the post/page/cpt modified time for use as replacement string.
Метод класса: WPSEO_Replace_Vars{}
Хуков нет.
Возвращает
Строку|null.
Использование
// private - только в коде основоного (родительского) класса $result = $this->retrieve_modified();
Код WPSEO_Replace_Vars::retrieve_modified() WPSEO Replace Vars::retrieve modified Yoast 27.8
private function retrieve_modified() {
$replacement = null;
if ( ! empty( $this->args->post_modified ) ) {
$replacement = YoastSEO()->helpers->date->format_translated( $this->args->post_modified, get_option( 'date_format' ) );
}
return $replacement;
}