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 |
---|---|
3198 | } |
3199 | } elseif ( is_post_type_archive() ) { |
3200 | /** |
3201 | * Filters whether to display the post type archive feed link. |
3202 | * |
3203 | * @since 6.1.0 |
3204 | * |
3205 | * @param bool $show Whether to display the post type archive feed link. Default true. |
3206 | */ |
3207 | $show_post_type_archive_feed = apply_filters( 'feed_links_extra_show_post_type_archive_feed', true ); |
3208 |
|
3209 | if ( $show_post_type_archive_feed ) { |
3210 | $post_type = get_query_var( 'post_type' ); |
3211 |
|
3212 | if ( is_array( $post_type ) ) { |
3213 | $post_type = reset( $post_type ); |
3214 | } |
3215 |
|
3216 | $post_type_obj = get_post_type_object( $post_type ); |