get_embed_template(): string  Retrieves an embed template path in the current or parent template.   Description The hierarchy for this template looks like:  embed-{post_type}-{post_format}.php embed-{post_type}.php embed.php  An example of this is:  embed-post-audio.php embed-post.php embed.php  The template hierarchy and template path are filterable via the ‘$type_template_hierarchy’ and ‘$type_template’ dynamic hooks, where $type is ’embed’. See also  
get_query_template()     Return string Full path to embed template file.   Source  File: wp-includes/template.php. View all references  function get_embed_template() {
	$object = get_queried_object();

	$templates = array();

	if ( ! empty( $object->post_type ) ) {
		$post_format = get_post_format( $object );
		if ( $post_format ) {
			$templates[] = "embed-{$object->post_type}-{$post_format}.php";
		}
		$templates[] = "embed-{$object->post_type}.php";
	}

	$templates[] = 'embed.php';

	return get_query_template( 'embed', $templates );
}
   Related  Uses    Uses Description      get_queried_object() wp-includes/query.php   Retrieves the currently queried object.     get_query_template() wp-includes/template.php   Retrieves path to a template.     get_post_format() wp-includes/post-formats.php   Retrieve the format slug for a post   
    Changelog    Version Description     4.5.0 Introduced.    

    
{'path': 'public/docs/wordpress/functions/get_embed_template.html', 'source': 'DevDocs.IO'}