首页 WordPress函数大全 do_enclose()

do_enclose()

2020-05-01 / 5514阅 / 悠然

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

do_enclose( string $content = null, int|WP_Post $post )

Check content for video and audio links to add as enclosures.

描述

Will not add enclosures that have already been added and will remove enclosures that are no longer in the post. This is called as pingbacks and trackbacks.

参数

$content

(string)
(Optional)
Post content. If null, the post_content field from $post is used.

Default value: null

$post

(int|WP_Post)
(Required)
Post ID or post object.

返回

(null|bool) Returns false if post is not found.

大家谈论
    我的见解