Make WordPress Core

Opened 5 years ago

Closed 2 years ago

Last modified 2 years ago

#15222 closed enhancement (invalid)

show_option_all_included for wp_dropdown_categories

Reported by: roxaz Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.1
Component: General Keywords:
Focuses: Cc:


this little addition lets user have an option which allows searching in all categories included in dropdown only. put it below handling of show_option_all option in wp_dropdown_categories


$show_option_all = apply_filters( 'list_cats', $show_option_all_included );
$selected = ( '0' === strval($rselected?) ) ? " selected='selected'" : ;
$vals =
foreach($categories as $cat)

$vals .= $cat->term_id.',';

$vals = substr($vals, 0, -1);
$output .= "\t<option value='$vals'$selected>$show_option_all</option>\n";


Change History (3)

comment:1 @roxaz5 years ago

opss code is messed up. grab it at http://pastebin.com/iXjGcrc3

comment:2 @c3mdigital2 years ago

  • Keywords close added
  • Resolution set to invalid
  • Status changed from new to closed
  • Version changed from 3.0.1 to 2.1

There already is a show_option_all choice along with a filter if needed.

comment:3 @helen2 years ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.