I am using woocommerce plugin. Idea was to edit checkout page to create my own classes , placeholders etc for fields. With some googling I managed it all. Only thing that I can't change is country dropdown/select. For example having this code
$fields['shipping']['shipping_country'] = array(
'type' => 'select',
'label' => 'Country',
'placeholder' => '',
'maxlength' => false,
'required' => false,
'class' => array(),
'label_class' => array('col-md-6'),
'input_class' => array('col-md-6'),
'return' => false,
'options' => array( 'Germany' => 'Germany',
'Germany' => 'Germany'),
'custom_attributes' => array(),
'validate' => array(),
'default' => '',
);
I want to dynamically load all countries from woocommerce. I don't want to add country by country in array, dont think thats the right way also. So is there some object or whatever that will load in this 'options' array all available countries?