On this page
apply_filters( 'post_embed_url', string $embed_url, WP_Post $post )
Filters the URL to embed a specific post.
Parameters
$embed_urlstring-
The post embed URL.
$postWP_Post-
The corresponding post object.
Source
File: wp-includes/embed.php. View all references
return sanitize_url( apply_filters( 'post_embed_url', $embed_url, $post ) );
Related
Used By
| Used By | Description |
|---|---|
| get_post_embed_url() wp-includes/embed.php | Retrieves the URL to embed a specific post in an iframe. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/post_embed_url