Yoast\WP\SEO\Services\Health_Check

Report_Builder::get_signature()privateYoast 1.0

Generates Yoast's signature that's displayed at the bottom of the health check result.

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

Хуков нет.

Возвращает

Строку. Yoast's signature as an HTML string.

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

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

Код Report_Builder::get_signature() Yoast 19.2

private function get_signature() {
	return \sprintf(
		/* translators: 1: Start of a paragraph beginning with the Yoast icon, 2: Expands to 'Yoast SEO', 3: Paragraph closing tag. */
		\esc_html__( '%1$sThis was reported by the %2$s plugin%3$s', 'wordpress-seo' ),
		'<p class="yoast-site-health__signature"><img src="' . \esc_url( \plugin_dir_url( \WPSEO_FILE ) . 'packages/js/images/Yoast_SEO_Icon.svg' ) . '" alt="" height="20" width="20" class="yoast-site-health__signature-icon">',
		'Yoast SEO',
		'</p>'
	);
}