Filter hook '{$taxonomy}_{$field}_rss'

in WP Core File wp-includes/taxonomy.php at line 1878

View Source

{$taxonomy}_{$field}_rss

Filter Hook
Description
Filters the taxonomy field for use in RSS. The dynamic portions of the hook name, `$taxonomy`, and `$field`, refer to the taxonomy slug and field name, respectively.

Hook Information

File Location wp-includes/taxonomy.php View on GitHub
Hook Type Filter
Line Number 1878

Hook Parameters

Type Name Description
mixed $value Value of the taxonomy field.

Usage Examples

Basic Usage
<?php
// Hook into {$taxonomy}_{$field}_rss
add_filter('{$taxonomy}_{$field}_rss', 'my_custom_filter', 10, 1);

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

Source Code Context

wp-includes/taxonomy.php:1878 - How this hook is used in WordPress core
<?php
1873  		 *
1874  		 * @since 2.3.0
1875  		 *
1876  		 * @param mixed $value Value of the taxonomy field.
1877  		 */
1878  		$value = apply_filters( "{$taxonomy}_{$field}_rss", $value );
1879  	} else {
1880  		// Use display filters by default.
1881  
1882  		/**
1883  		 * Filters the term field sanitized for display.

PHP Documentation

<?php
/**
		 * Filters the taxonomy field for use in RSS.
		 *
		 * The dynamic portions of the hook name, `$taxonomy`, and `$field`, refer
		 * to the taxonomy slug and field name, respectively.
		 *
		 * @since 2.3.0
		 *
		 * @param mixed $value Value of the taxonomy field.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/taxonomy.php
Related Hooks

Related hooks will be displayed here in future updates.