Yoast\WP\SEO\Services\Health_Check

Postname_Permalink_Reports::get_has_no_postname_in_permalink_actions()privateYoast 1.0

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

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

Хуков нет.

Возвращает

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

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

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

Код Postname_Permalink_Reports::get_has_no_postname_in_permalink_actions() Yoast 22.4

private function get_has_no_postname_in_permalink_actions() {
	return \sprintf(
		/* translators: %1$s is a link start tag to the permalink settings page, %2$s is the link closing tag. */
		\__( 'You can fix this on the %1$sPermalink settings page%2$s.', 'wordpress-seo' ),
		'<a href="' . \admin_url( 'options-permalink.php' ) . '">',
		'</a>'
	);
}