WPSEO_Replace_Vars::retrieve_modified()privateYoast 1.0

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() Yoast 24.9

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