Yoast\WP\SEO\Routes

Indexables_Page_Route::get_reading_list()publicYoast 1.0

Gets the state of the reading list.

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

Хуков нет.

Возвращает

WP_REST_Response. A list of boolean values which are true if an article has been flagged as read.

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

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

Код Indexables_Page_Route::get_reading_list() Yoast 19.10

public function get_reading_list() {
	$reading_list = $this->indexables_page_action->get_reading_list();
	return new WP_REST_Response(
		[
			'json' => [
				'state' => $reading_list,
			],
		]
	);
}