Skip to content

Instantly share code, notes, and snippets.

@seostudio
seostudio / functions.php
Last active Mar 12, 2019
woocommerce_form_field_args
View functions.php
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;
}