W3cubDocs

/WordPress

apply_filters( ‘the_permalink_rss’, string $post_permalink )

Filters the permalink to the post for use in feeds.

Parameters

$post_permalinkstring
The current post permalink.

Source

echo esc_url( apply_filters( 'the_permalink_rss', get_permalink() ) );

Changelog

Version Description
2.3.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_permalink_rss