Yoast\WP\SEO\Services\Health_Check

Page_Comments_Reports::get_has_comments_on_multiple_pages_result()publicYoast 1.0

Returns the report for when comments are set to be broken up across multiple pages.

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

Хуков нет.

Возвращает

Строку[]. The message as a WordPress site status report.

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

$Page_Comments_Reports = new Page_Comments_Reports();
$Page_Comments_Reports->get_has_comments_on_multiple_pages_result();

Код Page_Comments_Reports::get_has_comments_on_multiple_pages_result() Yoast 22.4

public function get_has_comments_on_multiple_pages_result() {
	return $this->get_report_builder()
		->set_label( \__( 'Comments break into multiple pages', 'wordpress-seo' ) )
		->set_status_recommended()
		->set_description( \__( 'Comments on your posts break into multiple pages. As this is not needed in 999 out of 1000 cases, we recommend you disable it. To fix this, uncheck "Break comments into pages..." on the Discussion Settings page.', 'wordpress-seo' ) )
		->set_actions( $this->get_has_comments_on_multiple_pages_actions() )
		->build();
}