get_post_embed_url

SummerySummery

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

Syntax

get_post_embed_url( int|WP_Post $post = null )

ParametersParameters

$post

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

Default value: null

ReturnReturn

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

SourceSource

File: wp-includes/embed.php


			

ChangelogChangelog

Changelog
Version Description
4.4.0 Introduced.
Scroll to Top