Advertisements

dropdown_cats

Definition:
function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc',

Parameters

  • int $optionall
  • string $all
  • string $orderby
  • string $order
  • int $show_last_update
  • int $show_count
  • int $hide_empty
  • bool $optionnone
  • int $selected
  • int $exclude

Source code

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', '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);

}

986

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: