wpseek.com
A WordPress-centric search engine for devs and theme authors



rss_enclosure › WordPress Filter Hooks

Since2.2.0
Deprecatedn/a
apply_filters( 'rss_enclosure', 'Parameters:
  • (string) $html_link_tag The HTML link tag with a URI and other attributes.
    Required: No
    Default:
Defined at:Codex:

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





Source

echo apply_filters( 'rss_enclosure', '<enclosure url="' . esc_url( trim( $enclosure[0] ) ) . '" length="' . absint( trim( $enclosure[1] ) ) . '" type="' . esc_attr( $type ) . '" />' . "\n" );