WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта
класс не описан

Yoast\WP\SEO\Presentations

Indexable_Static_Home_Page_Presentation{} Yoast 1.0

Class Indexable_Static_Home_Page_Presentation.

Presentation object for indexables.

Хуков нет.

Возвращает

null. Ничего.

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

$Indexable_Static_Home_Page_Presentation = new Indexable_Static_Home_Page_Presentation();
// use class methods

Методы

  1. generate_open_graph_type()
  2. get_paginated_url( $url, $page )

Код Indexable_Static_Home_Page_Presentation{} Yoast 16.8

<?php
class Indexable_Static_Home_Page_Presentation extends Indexable_Post_Type_Presentation {

	/**
	 * Wraps the get_paginated_url pagination helper method.
	 *
	 * @param string $url  The un-paginated URL of the current archive.
	 * @param string $page The page number to add on to $url for the $link tag.
	 *
	 * @return string The paginated URL.
	 */
	protected function get_paginated_url( $url, $page ) {
		return $this->pagination->get_paginated_url( $url, $page );
	}

	/**
	 * Generates the Open Graph type.
	 *
	 * @return string The Open Graph type.
	 */
	public function generate_open_graph_type() {
		return 'website';
	}
}