wordpress snippets last updated   : April 14, 2014
we now have 630 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' );

  • Anonymous

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

jqsnipp.com | we just launched jquery snippets website