embed_template WordPress Filter Hook

The embed_template hook allows you to customize the output of your embedded content. This hook is called during the rendering of the embedded template. The first parameter is the name of the template file being rendered. The second parameter is an array of data that is made available to the template. You can use this hook to modify the output of your embedded content.

apply_filters( 'embed_template', string $template ) #

Filter the template used for embedded posts.


Parameters

$template

(string)Path to the template file.


Top ↑

Source

File: wp-includes/template-loader.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.