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_3396', 10, 2 ); function filter_function_name_3396( $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.
Changelog
Since 2.8.0 | Introduced. |
Since 4.9.0 | Added the $instance parameter. |
Where the hook is called
wp-includes/widgets/class-wp-widget-pages.php 76-85
apply_filters( 'widget_pages_args', array( 'title_li' => '', 'echo' => 0, 'sort_column' => $sortby, 'exclude' => $exclude, ), $instance )