get_post_embed_html

Advertisement

Summery Summery

Retrieves the embed code for a specific post.

Syntax Syntax

get_post_embed_html( int $width, int $height, int|WP_Post $post = null )

Parameters Parameters

$width

(int) (Required) The width for the response.

$height

(int) (Required) The height for the response.

$post

(int|WP_Post) (Optional) Post ID or object. Default is global $post.

Default value: null

Return Return

(string|false) Embed code on success, false if post doesn't exist.

Source Source

File: wp-includes/embed.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.