get_post_embed_html


get_post_embed_html ( $width, $height, $post = null )

Parameters:
  • (int) $width The width for the response.
  • (int) $height The height for the response.
  • (int|WP_Post) $post Optional. Post ID or object. Default is global `$post`.
Returns:
  • (string|false) Embed code on success, false if post doesn't exist.
Defined at:

Description

Retrieves the embed code for a specific post.

Related Functions

get_post_embed_url, get_post_meta, get_post_modified_time, get_embed_template, get_post_to_edit

Top Google Results

User discussions

wpseek mobile