wordpress snippets last updated   : January 29, 2015
we now have 646 snippets

Change “select category” name within category dropdown widget

wordpress snippet

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.

snippet :  PHPcopy
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' );

Did you like this post? If so please share it with your friends. Thanks!

  • Anonymous

    Awesome. How would you accomplish this same thing for the Archives widget?

  • DJEB

    Thanks for this. The solution I was after.