WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WPSEO_Health_Check_Page_Comments::run() public Yoast 1.0

Runs the test.

Ищем WP-разработчика! Фулл-тайм, удаленка, хорошая зарплата, соц. пакет. Подробности.
Компания Boosta.

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

Хуков нет.

Возвращает

null. Ничего.

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

$WPSEO_Health_Check_Page_Comments = new WPSEO_Health_Check_Page_Comments();
$WPSEO_Health_Check_Page_Comments->run();

Код WPSEO_Health_Check_Page_Comments::run() Yoast 17.4

public function run() {
	if ( ! $this->has_page_comments() ) {
		$this->label          = esc_html__( 'Comments are displayed on a single page', 'wordpress-seo' );
		$this->status         = self::STATUS_GOOD;
		$this->badge['color'] = 'blue';
		$this->description    = esc_html__( 'Comments on your posts are displayed on a single page. This is just like we\'d suggest it. You\'re doing well!', 'wordpress-seo' );
		return;
	}

	$this->label          = esc_html__( 'Comments break into multiple pages', 'wordpress-seo' );
	$this->status         = self::STATUS_RECOMMENDED;
	$this->badge['color'] = 'red';
	$this->description    = esc_html__( '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' );
	$this->actions        = sprintf(
		/* translators: 1: Opening tag of the link to the discussion settings page, 2: Link closing tag. */
		esc_html__( '%1$sGo to the Discussion Settings page%2$s', 'wordpress-seo' ),
		'<a href="' . esc_url( admin_url( 'options-discussion.php' ) ) . '">',
		'</a>'
	);
}