Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: widget_pages_args

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
44           /**
45            * Filter the arguments for the Pages widget.
46            *
47            * @since 2.8.0
48            *
49            * @see wp_list_pages()
50            *
51            * @param array $args An array of arguments to retrieve the pages list.
52            */
53           $out = wp_list_pages( apply_filters( 'widget_pages_args', array(
54                'title_li'    => '',
55                'echo'        => 0,
56                'sort_column' => $sortby,
57                'exclude'     => $exclude
58           ) ) );
59
60           if ( ! empty( $out ) ) {
61                echo $args['before_widget'];
62                if ( $title ) {