Filters the arguments for the Pages widget.
Description
See also
Parameters
$args
array- An array of arguments to retrieve the pages list.
$instance
array- Array of settings for the current widget.
Source
apply_filters(
'widget_pages_args',
array(
'title_li' => '',
'echo' => 0,
'sort_column' => $sortby,
'exclude' => $exclude,
),
$instance
)
Example migrated from Codex:
The following removes certain pages from displaying in the WordPress default Display Pages widget.