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.
Contents
Parameters
- $template
(string)Path to the template file.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |