Yoast\WP\SEO\Routes

Indexables_Page_Route::get_least_linked()publicYoast 1.0

Gets the least linked posts.

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

Хуков нет.

Возвращает

WP_REST_Response. The most linked posts.

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

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

Код Indexables_Page_Route::get_least_linked() Yoast 19.10

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