Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: feed_links_show_posts_feed

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2565      $args = wp_parse_args( $args, $defaults );
2566
2567      /**
2568       * Filter whether to display the posts feed link.
2569       *
2570       * @since 4.4.0
2571       *
2572       * @param bool $show Whether to display the posts feed link. Default true.
2573       */
2574      if ( apply_filters( 'feed_links_show_posts_feed', true ) ) {
2575           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";
2576      }
2577
2578      /**
2579       * Filter whether to display the comments feed link.
2580       *
2581       * @since 4.4.0
2582       *
2583       * @param bool $show Whether to display the comments feed link. Default true.