do_enclose


do_enclose ( $content = null, $post )

Parameters:
  • (string) $content Post content. If `null`, the `post_content` field from `$post` is used.
  • (int|WP_Post) $post Post ID or post object.
Returns:
  • (null|bool) Returns false if post is not found.
Defined at:
Change Log:
  • 5: .

Description

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.

Related Functions

atom_enclosure, get_enclosed, rss_enclosure, debug_fclose, do_blocks

Top Google Results

User discussions

wpseek mobile