1. 首页
  2. WordPress 函数手册

atom_enclosure()

atom_enclosure()

显示当前post的atom外壳。
Display the atom enclosure for the current post.

目录锚点:#说明#返回#源码


说明(Description)

使用全局$post检查post是否需要密码,以及用户是否具有post的密码。如果没有,它将在显示之前返回。

还使用函数get_post_custom()获取post的“enclosure”元数据字段,并分析该值以显示enclosure。附件由带有URI和其他属性的链接HTML标记组成。


返回(Return)

无返回值


源码(Source)


更新版本 源码位置 使用 被使用
2.2.0 wp-includes/feed.php:508 0 7

atom_enclosure() 为WP2原创文章,链接:https://www.wp2.cn/functions/atom_enclosure-2/