WordPress at a glance
filter is not described

widget_pages_args filter-hook . WP 2.8.0

Filters the arguments for the Pages widget.

Usage

add_filter( 'widget_pages_args', 'filter_function_name_8687', 10, 2 );
function filter_function_name_8687( $args, $instance ){
	// filter...

	return $args;
}
$args(array)
An array of arguments to retrieve the pages list.
$instance(array)
Array of settings for the current widget.

Notes

  • Since 4.9.0 Added the $instance parameter.

Where the hook is called

WP_Widget_Pages::widget()
widget_pages_args
wp-includes/widgets/class-wp-widget-pages.php 73-78
$out = wp_list_pages( apply_filters( 'widget_pages_args', array(
	'title_li'    => '',
	'echo'        => 0,
	'sort_column' => $sortby,
	'exclude'     => $exclude
), $instance ) );

Where the hook is used (in WP core)

Does not used.