Yoast\WP\SEO\Conditionals

AI_Editor_Conditional::is_attachmentpublicYoast 1.0

Is an attchment post type.

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

Хуков нет.

Возвращает

true|false.

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

$AI_Editor_Conditional = new AI_Editor_Conditional();
$AI_Editor_Conditional->is_attachment();

Код AI_Editor_Conditional::is_attachment() Yoast 27.7

public function is_attachment() {
	return $this->current_page_helper->get_current_post_type() === 'attachment';
}