Filter hook 'post_type_archive_feed_link'

in WP Core File wp-includes/link-template.php at line 1392

View Source

post_type_archive_feed_link

Filter Hook
Description
Filters the post type archive feed link.

Hook Information

File Location wp-includes/link-template.php View on GitHub
Hook Type Filter
Line Number 1392

Hook Parameters

Type Name Description
string $link The post type archive feed link.
string $feed Feed type. Possible values include 'rss2', 'atom'.

Usage Examples

Basic Usage
<?php
// Hook into post_type_archive_feed_link
add_filter('post_type_archive_feed_link', 'my_custom_filter', 10, 2);

function my_custom_filter($link, $feed) {
    // Your custom filtering logic here
    return $link;
}

Source Code Context

wp-includes/link-template.php:1392 - How this hook is used in WordPress core
<?php
1387  	 * @since 3.1.0
1388  	 *
1389  	 * @param string $link The post type archive feed link.
1390  	 * @param string $feed Feed type. Possible values include 'rss2', 'atom'.
1391  	 */
1392  	return apply_filters( 'post_type_archive_feed_link', $link, $feed );
1393  }
1394  
1395  /**
1396   * Retrieves the URL used for the post preview.
1397   *

PHP Documentation

<?php
/**
	 * Filters the post type archive feed link.
	 *
	 * @since 3.1.0
	 *
	 * @param string $link The post type archive feed link.
	 * @param string $feed Feed type. Possible values include 'rss2', 'atom'.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-includes/link-template.php
Related Hooks

Related hooks will be displayed here in future updates.