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 |
---|---|
2940 | $args = wp_parse_args( $args, $defaults ); |
2941 |
|
2942 | /** |
2943 | * Filters whether to display the posts feed link. |
2944 | * |
2945 | * @since 4.4.0 |
2946 | * |
2947 | * @param bool $show Whether to display the posts feed link. Default true. |
2948 | */ |
2949 | if ( apply_filters( 'feed_links_show_posts_feed', true ) ) { |
2950 | echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr( sprintf( $args['feedtitle'], get_bloginfo( 'name' ), $args['separator'] ) ) . '" href="' . esc_url( get_feed_link() ) . "\" />\n"; |
2951 | } |
2952 |
|
2953 | /** |
2954 | * Filters whether to display the comments feed link. |
2955 | * |
2956 | * @since 4.4.0 |
2957 | * |
2958 | * @param bool $show Whether to display the comments feed link. Default true. |