the_permalink_rss() WordPress Function

The the_permalink_rss() function is used to display the permalink for a post in an RSS feed. This function can be used within the WordPress loop.

the_permalink_rss() #

Display the permalink to the post for use in feeds.


Source

File: wp-includes/feed.php

function the_permalink_rss() {
	/**
	 * Filters the permalink to the post for use in feeds.
	 *
	 * @since 2.3.0
	 *
	 * @param string $post_permalink The current post permalink.
	 */
	echo esc_url( apply_filters( 'the_permalink_rss', get_permalink() ) );
}


Top ↑

Changelog

Changelog
VersionDescription
2.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.