I am new to PHP and Wordpress. I have the following code in one of my plugin file. It is used to generate a drop down for categories. I want to add an html attribute to it. I want to add the html attribute "autofocus" to it so that when the page load this select box has focus by default.
<?php
wp_dropdown_categories( array(
'name' => 'question-category',
'id' => 'question-category',
'taxonomy' => 'dwqa-question_category',
'show_option_none' => __('Select a question category','dwqa'),
'hide_empty' => 0,
'quicktags' => array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,spell,close' ),
) );
?>
I am having problem with the syntax in which this should be added.