WP_Query::is_embed │ public │ WP 4.4.0

Determines whether the query is for an embedded post.

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

Хуков нет.

Возвращает

bool. Whether the query is for an embedded post.

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

global $wp_query;
$wp_query->is_embed();

Список изменений

С версии 4.4.0 Введена.

Код WP_Query::is_embed() WP 7.1.3

public function is_embed() {
	return (bool) $this->is_embed;
}