How to Change “select category” name within category dropdown widget

Adding this snippet to the functions.php of your wordpress theme will let you change the name displayed within the select menu category dropdown widget.

function _category_dropdown_filter( $cat_args ) {
        $cat_args['show_option_none'] = __('My Category');
        return $cat_args;
}
add_filter( 'widget_categories_dropdown_args', '_category_dropdown_filter' );

You may also like...