Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_list_bookmarks

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
289      }
290
291      /**
292       * Filters the bookmarks list before it is echoed or returned.
293       *
294       * @since 2.5.0
295       *
296       * @param string $html The HTML list of bookmarks.
297       */
298      $html = apply_filters( 'wp_list_bookmarks', $output );
299
300      if ( ! $r['echo'] ) {
301           return $html;
302      }
303      echo $html;
304 }
305