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 22.4

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',