Last active
March 12, 2019 15:59
-
-
Save seostudio/ef085d97facefdf10efefecbef34d99b to your computer and use it in GitHub Desktop.
woocommerce_form_field_args
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment