apply_filters( 'widget_pages_args', array $args , array $instance )
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
File: wp-includes/widgets/class-wp-widget-pages.php
.
View all references
apply_filters(
'widget_pages_args',
array(
'title_li' => '',
'echo' => 0,
'sort_column' => $sortby,
'exclude' => $exclude,
),
$instance
)
Changelog
Version | Description |
---|---|
4.9.0 | Added the $instance parameter. |
2.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Example migrated from Codex:
The following removes certain pages from displaying in the WordPress default Display Pages widget.