Yoast\WP\SEO\Services\Health_Check

Postname_Permalink_Reports::get_success_result()publicYoast 1.0

Returns the report for when permalinks are set to contain the post name.

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

Хуков нет.

Возвращает

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

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

$Postname_Permalink_Reports = new Postname_Permalink_Reports();
$Postname_Permalink_Reports->get_success_result();

Код Postname_Permalink_Reports::get_success_result() Yoast 22.3

public function get_success_result() {
	return $this->get_report_builder()
		->set_label( \esc_html__( 'Your permalink structure includes the post name', 'wordpress-seo' ) )
		->set_status_good()
		->set_description( \__( 'You do have your postname in the URL of your posts and pages.', 'wordpress-seo' ) )
		->build();
}