WPSEO_Replace_Vars::retrieve_post_day()privateYoast 1.0

Retrieve the post/page/cpt's published day for use as replacement string.

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

Хуков нет.

Возвращает

Строку|null.

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

// private - только в коде основоного (родительского) класса
$result = $this->retrieve_post_day();

Код WPSEO_Replace_Vars::retrieve_post_day() Yoast 22.4

private function retrieve_post_day() {
	if ( empty( $this->args->ID ) ) {
		return null;
	}

	return get_the_date( 'd', $this->args->ID );
}