wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



dropdown_cats › WordPress Function

Depuis0.71
Dépréciée2.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 )
Paramètres: (10)
  • (int) $optionall
    Requis: Non
    Défaut: 1
  • (string) $all
    Requis: Non
    Défaut: 'All'
  • (string) $orderby
    Requis: Non
    Défaut: 'ID'
  • (string) $order
    Requis: Non
    Défaut: 'asc'
  • (int) $show_last_update
    Requis: Non
    Défaut:
  • (int) $show_count
    Requis: Non
    Défaut:
  • (int) $hide_empty
    Requis: Non
    Défaut: 1
  • (bool) $optionnone
    Requis: Non
    Défaut: false
  • (int) $selected
    Requis: Non
    Défaut:
  • (int) $exclude
    Requis: Non
    Défaut:
Voir:
Retourne:
  • (string)
Défini(e) dans:
Codex:

Deprecated method for generating a drop-down of categories.



Source

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);
}