Skip to content

Instantly share code, notes, and snippets.

@seostudio
seostudio / functions.php
Last active March 12, 2019 15:59
woocommerce_form_field_args
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;
}