+elseif ( is_embed() ) :
+ $template = ABSPATH . WPINC . '/embed-template.php';
+
+ /**
+ * Filter the template used for embedded posts.
+ *
+ * @since 4.4.0
+ *
+ * @param string $template Path to the template file.
+ */
+ $template = apply_filters( 'embed_template', $template );
+
+ include ( $template );
+ return;