wphooks.info - widget_pages_args

widget_pages_args

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/widgets/class-wp-widget-pages.php:
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
		 * Filters the arguments for the Pages widget.
		 *
		 * @since 2.8.0
		 * @since 4.9.0 Added the `$instance` parameter.
		 *
		 * @see wp_list_pages()
		 *
		 * @param array $args     An array of arguments to retrieve the pages list.
		 * @param array $instance Array of settings for the current widget.
		 */
		$out = wp_list_pages( apply_filters( 'widget_pages_args', array(
			'title_li'    => '',
			'echo'        => 0,
			'sort_column' => $sortby,
			'exclude'     => $exclude
		), $instance ) );

		if ( ! empty( $out ) ) {
			echo $args['before_widget'];
			if ( $title ) {