WPDev.one
Core Function
View Source on Trac ↗

get_post_embed_url()

get_post_embed_url( mixed $post = null )

Retrieves the URL to embed a specific post in an iframe.

Parameters 1 required

Name / Type Description
(int

| WP_Post) $post Optional. Post ID or object. Defaults to the current post.

Required

Return Value

((string)
| false) The post embed URL on success, false if the post doesn't exist.

Function Information

Since Version
4.4.0
Source File
wp-includes/embed.php
Advertisement