You appear to be a bot. Output may be restricted
Description
Display a category selection drop down listInclude: empty categories and show the count of each category
Usage
oik_batchmove_category_select( $name, $all );
Parameters
- $name
- ( string ) required – name for the select field
- $all
- ( string ) optional default: All – Text for "show_option_all"
Returns
voidSource
File name: oik-batchmove/admin/oik-batchmove.phpLines:
1 to 16 of 16
function oik_batchmove_category_select( $name, $all="All" ) { /* Do we have to worry about selected? It would be pretty obvious from the selected list **?** */ /* Answer - Yes, since we need to redisplay after each action */ $args = array( "show_count" => 1 , "hide_empty" => 0 , "echo" => 0 , "hierarchical" => 1 , "name" => $name // "" , "show_option_all" => $all ); $selected = bw_array_get( $_REQUEST, $name, null ); if ( $selected ) { $args['selected'] = $selected; } return( wp_dropdown_categories( $args ) ); }View on GitHub View on Trac