This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_form_field_args', 'my_woocommerce_form_field_args', 10, 3 ); | |
function my_woocommerce_form_field_args( $args, $key, $value ) { | |
if ( $args['type'] == 'checkbox' ) { | |
$args['label'] = '<span>' . $args['label'] . '</span>'; | |
} | |
return $args; | |
} |