diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 8f2cdf67aa..7709c73db6 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -2306,8 +2306,27 @@ function feed_links( $args = array() ) { $args = wp_parse_args( $args, $defaults ); - echo '\n"; - echo '\n"; + /** + * Filter whether to display the posts feed link. + * + * @since 4.3.0 + * + * @param bool $show Whether to display the posts feed link. Default true. + */ + if ( apply_filters( 'feed_links_show_posts_feed', true ) ) { + echo '\n"; + } + + /** + * Filter whether to display the comments feed link. + * + * @since 4.3.0 + * + * @param bool $show Whether to display the comments feed link. Default true. + */ + if ( apply_filters( 'feed_links_show_comments_feed', true ) ) { + echo '\n"; + } } /**