Yoast\WP\SEO\Llms_Txt\Infrastructure\Content

Manual_Post_Collection::get_content_type_entrypublicYoast 1.0

Gets the content entries.

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

Хуков нет.

Возвращает

Content_Type_Entry. The content type entry.

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

$Manual_Post_Collection = new Manual_Post_Collection();
$Manual_Post_Collection->get_content_type_entry( $page_id ): ?Content_Type_Entry;
$page_id(int) (обязательный)
The id of the page.

Код Manual_Post_Collection::get_content_type_entry() Yoast 26.9

public function get_content_type_entry( int $page_id ): ?Content_Type_Entry {
	if ( $this->indexable_helper->should_index_indexables() ) {
		$post = $this->get_content_type_entry_for_indexable( $page_id );
	}
	else {
		$post = $this->get_content_type_entry_wp_query( $page_id );
	}

	return $post;
}