W3cubDocs

/WordPress

apply_filters( ‘widget_categories_dropdown_args’, array $cat_args, array $instance )

Filters the arguments for the Categories widget drop-down.

Description

See also

Parameters

$cat_argsarray
An array of Categories widget drop-down arguments.
$instancearray
Array of settings for the current widget.

Source

wp_dropdown_categories( apply_filters( 'widget_categories_dropdown_args', $cat_args, $instance ) );

Changelog

Version Description
4.9.0 Added the $instance parameter.
2.8.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/widget_categories_dropdown_args