feed_links_extra_args
Filter HookDescription
Filters the extra feed links arguments.Hook Information
File Location |
wp-includes/general-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 3328 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$args
|
An array of extra feed links arguments. |
Usage Examples
Basic Usage
<?php
// Hook into feed_links_extra_args
add_filter('feed_links_extra_args', 'my_custom_filter', 10, 1);
function my_custom_filter($args) {
// Your custom filtering logic here
return $args;
}
Source Code Context
wp-includes/general-template.php:3328
- How this hook is used in WordPress core
<?php
3323 *
3324 * @since 6.7.0
3325 *
3326 * @param array $args An array of extra feed links arguments.
3327 */
3328 $args = apply_filters( 'feed_links_extra_args', $args );
3329
3330 if ( is_singular() ) {
3331 $id = 0;
3332 $post = get_post( $id );
3333
PHP Documentation
<?php
/**
* Filters the extra feed links arguments.
*
* @since 6.7.0
*
* @param array $args An array of extra feed links arguments.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/general-template.php
Related Hooks
Related hooks will be displayed here in future updates.