Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



dropdown_cats ›

Seit0.71
Veraltet2.1.0
dropdown_cats ( $optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc', $show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false, $selected = 0, $exclude = 0 )
Parameter: (10)
  • (int) $optionall
    Erforderlich: Nein
    Standard: 1
  • (string) $all
    Erforderlich: Nein
    Standard: 'All'
  • (string) $orderby
    Erforderlich: Nein
    Standard: 'ID'
  • (string) $order
    Erforderlich: Nein
    Standard: 'asc'
  • (int) $show_last_update
    Erforderlich: Nein
    Standard:
  • (int) $show_count
    Erforderlich: Nein
    Standard:
  • (int) $hide_empty
    Erforderlich: Nein
    Standard: 1
  • (bool) $optionnone
    Erforderlich: Nein
    Standard: false
  • (int) $selected
    Erforderlich: Nein
    Standard:
  • (int) $exclude
    Erforderlich: Nein
    Standard:
Siehe:
Gibt zurück:
  • (string)
Definiert in:
Codex:

Deprecated method for generating a drop-down of categories.



Quellcode

function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc',
		$show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false,
		$selected = 0, $exclude = 0) {
	_deprecated_function( __FUNCTION__, '2.1.0', 'wp_dropdown_categories()' );

	$show_option_all = '';
	if ( $optionall )
		$show_option_all = $all;

	$show_option_none = '';
	if ( $optionnone )
		$show_option_none = __('None');

	$vars = compact('show_option_all', 'show_option_none', 'orderby', 'order',
					'show_last_update', 'show_count', 'hide_empty', 'selected', 'exclude');
	$query = add_query_arg($vars, '');
	return wp_dropdown_categories($query);
}