Yoast\WP\SEO\Helpers

Current_Page_Helper::get_date_archive_permalink()publicYoast 1.0

Returns the permalink of the currently opened date archive. If the permalink was cached, it returns this permalink. If not, we call another function to get the permalink through wp_query.

{} Это метод класса: Current_Page_Helper{}

Хуков нет.

Возвращает

Строку. The permalink of the currently opened date archive.

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

$Current_Page_Helper = new Current_Page_Helper();
$Current_Page_Helper->get_date_archive_permalink();

Код Current_Page_Helper::get_date_archive_permalink() Yoast 19.10

public function get_date_archive_permalink() {
	static $date_archive_permalink;

	if ( isset( $date_archive_permalink ) ) {
		return $date_archive_permalink;
	}

	$date_archive_permalink = $this->get_non_cached_date_archive_permalink();

	return $date_archive_permalink;
}