钩子文档

atom_enclosure

💡 云策文档标注

概述

atom_enclosure 是一个 WordPress 过滤器,用于修改当前文章的 Atom 提要中 enclosure 链接的 HTML 标签。它允许开发者自定义链接标签的属性和结构。

关键要点

  • 过滤器名称:atom_enclosure
  • 参数:$html_link_tag(字符串类型),表示包含 URI 和其他属性的 HTML 链接标签
  • 应用方式:通过 apply_filters('atom_enclosure', $html_link_tag) 调用
  • 相关函数:atom_enclosure() 用于显示当前文章的 Atom enclosure
  • 引入版本:WordPress 2.2.0

📄 原文内容

Filters the atom enclosure HTML link tag for the current post.

Parameters

$html_link_tagstring
The HTML link tag with a URI and other attributes.

Source

echo apply_filters( 'atom_enclosure', $html_link_tag );

Changelog

Version Description
2.2.0 Introduced.