Skip to content

Instantly share code, notes, and snippets.

@seostudio
Last active March 12, 2019 15:59
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seostudio/ef085d97facefdf10efefecbef34d99b to your computer and use it in GitHub Desktop.
Save seostudio/ef085d97facefdf10efefecbef34d99b to your computer and use it in GitHub Desktop.
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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment