首页 WordPress函数大全 get_post_embed_html()

get_post_embed_html()

2020-05-01 / 2038阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

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

Retrieves the embed code for a specific post.

描述

参数

$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

返回

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

大家谈论
    我的见解