WordPress输出当前文章Rss enclosure函数:rss_enclosure

WordPress函数用于输出当前文章的Rss enclosure,该函数使用全局变量$post来输出对应信息,如果文章设置为加密,则不输出任何内容。

rss_enclosure()

函数返回值

该函数返回一个XML标签:

<enclosure url="https://www.beizigen.com/wp-content/uploads/2022/04/9527.mp4" length="17014012" type="video/mp4" />

扩展阅读

rss_enclosure()函数位于:wp-includes/feed.php

相关函数:

  • get_post_custom()
阿里云