On this page
apply_filters( 'widget_categories_args', array $cat_args, array $instance )
Filters the arguments for the Categories widget.
Parameters
$cat_argsarray-
An array of Categories widget options.
$instancearray-
Array of settings for the current widget.
More Information
This filter is used by the default “WordPress Widget: Categories” before it passes arguments to the wp_list_categories() function.
Source
File: wp-includes/widgets/class-wp-widget-categories.php. View all references
wp_list_categories( apply_filters( 'widget_categories_args', $cat_args, $instance ) );
Related
Used By
| Used By | Description |
|---|---|
| WP_Widget_Categories::widget() wp-includes/widgets/class-wp-widget-categories.php | Outputs the content for the current Categories widget instance. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/widget_categories_args