WPDev.one
Core Function
View Source on Trac ↗

do_enclose()

do_enclose( mixed $content, mixed $post )

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

Parameters 2 required

Name / Type Description
(string

| null) $content Post content. If `null`, the `post_content` field from `$post` is used.

Required
(int

| WP_Post) $post Post ID or post object.

Required

Return Value

((void)
| false) Void on success, false if the post is not found.

Function Information

Since Version
1.5.0
Source File
wp-includes/functions.php
Advertisement