Yoast\WP\SEO\Routes

Indexables_Page_Route::get_most_linked()publicYoast 1.0

Gets the most linked posts.

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

Хуков нет.

Возвращает

WP_REST_Response. The most linked posts.

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

$Indexables_Page_Route = new Indexables_Page_Route();
$Indexables_Page_Route->get_most_linked();

Код Indexables_Page_Route::get_most_linked() Yoast 19.11

public function get_most_linked() {
	$most_linked = $this->indexables_page_action->get_most_linked( $this->indexables_page_helper->get_buffer_size() );
	return new WP_REST_Response(
		[
			'json' => [
				'list'   => $most_linked,
				'length' => \count( $most_linked ),
			],
		]
	);
}