Yoast\WP\SEO\Helpers
Current_Page_Helper::get_date_archive_permalink
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() Current Page Helper::get date archive permalink Yoast 28.3
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;
}