WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 3324 | $args = wp_parse_args( $args, $defaults ); |
| 3325 | |
| 3326 | /** |
| 3327 | * Filters the extra feed links arguments. |
| 3328 | * |
| 3329 | * @since 6.7.0 |
| 3330 | * |
| 3331 | * @param array $args An array of extra feed links arguments. |
| 3332 | */ |
| 3333 | $args = apply_filters( 'feed_links_extra_args', $args ); |
| 3334 | |
| 3335 | /* |
| 3336 | * The template conditionals are referring to the global query, so the queried object is used rather than |
| 3337 | * depending on a global $post being set. |
| 3338 | */ |
| 3339 | $queried_object = get_queried_object(); |
| 3340 | if ( is_singular() && $queried_object instanceof WP_Post ) { |
| 3341 | $post = $queried_object; |
| 3342 | |