Yoast\WP\SEO\Presentations

Indexable_Post_Type_Presentation::generate_twitter_image()publicYoast 1.0

Generates the Twitter image.

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

Хуков нет.

Возвращает

Строку. The Twitter image.

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

$Indexable_Post_Type_Presentation = new Indexable_Post_Type_Presentation();
$Indexable_Post_Type_Presentation->generate_twitter_image();

Код Indexable_Post_Type_Presentation::generate_twitter_image() Yoast 19.10

public function generate_twitter_image() {
	if ( \post_password_required() ) {
		return '';
	}

	return parent::generate_twitter_image();
}