product_type; switch ( $product_type ) { case 'external': return $options['external_button_text']; break; case 'grouped': return $options['grouped_button_text']; break; case 'simple': return $options['simple_button_text']; break; case 'variable': return $options['variable_button_text']; break; } } // function for styling woocommerce button add_action('wp_head', 'woo_setting_style'); function woo_setting_style() { $options = get_option('woo_setting'); // for button style # if button type round if('round' == $options['woo_button_type']) { ?>