the_permalink_rss
Filters the permalink to the post for use in feeds.
Usage
add_filter( 'the_permalink_rss', 'wp_kama_the_permalink_rss_filter' ); /** * Function for `the_permalink_rss` filter-hook. * * @param string $post_permalink The current post permalink. * * @return string */ function wp_kama_the_permalink_rss_filter( $post_permalink ){ // filter... return $post_permalink; }
- $post_permalink(string)
- The current post permalink.
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
the_permalink_rss
wp-includes/feed.php 252
echo esc_url( apply_filters( 'the_permalink_rss', get_permalink() ) );