Yoast\WP\SEO\Services\Health_Check

Postname_Permalink_Reports::get_has_no_postname_in_permalink_result()publicYoast 1.0

Returns the report for when permalinks are not 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_has_no_postname_in_permalink_result();

Код Postname_Permalink_Reports::get_has_no_postname_in_permalink_result() Yoast 19.2

public function get_has_no_postname_in_permalink_result() {
	return $this->get_report_builder()
		->set_label( __( 'You do not have your postname in the URL of your posts and pages', 'wordpress-seo' ) )
		->set_status_recommended()
		->set_description( $this->get_has_no_postname_in_permalink_description() )
		->set_actions( $this->get_has_no_postname_in_permalink_actions() )
		->build();
}