Adding a radio to WordPress is relatively simple. First, you will need to create a new file called wp-radio.php and add the following code:
name = ‘name'; $radiobutton->label = ‘Label'; $radiobutton->default_value = ‘Default'; $radiobutton->id = ‘radio_name'; $radiobutton->set_custom_css( ‘.radio { border: 1px solid #CCC; padding: 10px; }’, array( ‘name’ => ‘font-weight’, ‘label’ => __( ‘Radio Name’, ‘WooCommerce’ ), )); $output = $this->get_output(); $output->write(‘