WPSEO_Cornerstone_Filter::get_explanation()protectedYoast 1.0

Returns a text explaining this filter.

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

Хуков нет.

Возвращает

Строку|null. The explanation.

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

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

Код WPSEO_Cornerstone_Filter::get_explanation() Yoast 22.3

protected function get_explanation() {
	$post_type_object = get_post_type_object( $this->get_current_post_type() );

	if ( $post_type_object === null ) {
		return null;
	}

	return sprintf(
		/* translators: %1$s expands to the posttype label, %2$s expands anchor to blog post about cornerstone content, %3$s expands to </a> */
		__( 'Mark the most important %1$s as \'cornerstone content\' to improve your site structure. %2$sLearn more about cornerstone content%3$s.', 'wordpress-seo' ),
		strtolower( $post_type_object->labels->name ),
		'<a href="' . WPSEO_Shortlinker::get( 'https://yoa.st/1i9' ) . '" target="_blank">',
		'</a>'
	);
}