# friends/2.7.8/templates/embed/header-embed.php

Friends, version 2.7.8. 33 lines.

- Page: https://pluginprobe.com/plugins/friends/2.7.8/code/templates/embed/header-embed.php
- Raw: https://pluginprobe.com/plugins/friends/2.7.8/raw/templates/embed/header-embed.php
- Modified: 2023-01-27T11:40:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/friends/2.7.8/code/templates/embed/header-embed.php#L10-L20`.

```php
<?php
/**
 * Contains the post embed header template
 *
 * When a post is embedded in an iframe, this file is used to create the header output
 * if the active theme does not include a header-embed.php template.
 *
 * @package WordPress
 * @subpackage Theme_Compat
 * @since 4.5.0
 */

if ( ! headers_sent() ) {
	header( 'X-WP-embed: true' );
}

?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
	<title><?php echo esc_html( wp_get_document_title() ); ?></title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<?php
	/**
	 * Prints scripts or data in the embed template head tag.
	 *
	 * @since 4.4.0
	 */
	do_action( 'embed_head' );
	?>
</head>
<body <?php body_class(); ?>>

```
