Yoast\WP\SEO\Services\Health_Check

Postname_Permalink_Reports::get_has_no_postname_in_permalink_description()privateYoast 1.0

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

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

Хуков нет.

Возвращает

Строку. The description as a string.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_has_no_postname_in_permalink_description();

Код Postname_Permalink_Reports::get_has_no_postname_in_permalink_description() Yoast 19.2

private function get_has_no_postname_in_permalink_description() {
	return sprintf(
		/* translators: %s expands to '/%postname%/' */
		__( 'It\'s highly recommended to have your postname in the URL of your posts and pages. Consider setting your permalink structure to %s.', 'wordpress-seo' ),
		'<strong>/%postname%/</strong>'
	);
}