WordPress at a glance
function is not described

WP_Query::is_embed() public WP 4.4.0

Is the query for an embedded post?

{} It's a method of the class: WP_Query{}

No Hooks.

Return

true/false. Whether the query is for an embedded post.

Usage

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

Changelog

Since 4.4.0 Introduced.

Code of WP_Query::is_embed() WP 5.5.2

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