Filter hook 'feed_links_extra_show_search_feed'

in WP Core File wp-includes/general-template.php at line 3499

View Source

feed_links_extra_show_search_feed

Filter Hook
Description
Filters whether to display the search results feed link.

Hook Information

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

Hook Parameters

Type Name Description
bool $show Whether to display the search results feed link. Default true.

Usage Examples

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

function my_custom_filter($show) {
    // Your custom filtering logic here
    return $show;
}

Source Code Context

wp-includes/general-template.php:3499 - How this hook is used in WordPress core
<?php
3494  		 *
3495  		 * @since 6.1.0
3496  		 *
3497  		 * @param bool $show Whether to display the search results feed link. Default true.
3498  		 */
3499  		$show_search_feed = apply_filters( 'feed_links_extra_show_search_feed', true );
3500  
3501  		if ( $show_search_feed ) {
3502  			$title = sprintf(
3503  				$args['searchtitle'],
3504  				get_bloginfo( 'name' ),

PHP Documentation

<?php
/**
		 * Filters whether to display the search results feed link.
		 *
		 * @since 6.1.0
		 *
		 * @param bool $show Whether to display the search results feed link. Default true.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/general-template.php
Related Hooks

Related hooks will be displayed here in future updates.