Created
January 10, 2019 10:17
-
-
Save Faisalawanisee/ebe401991afd67e6a2a868a0f12d38a3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
add_filter('woocommerce_form_field', 'custom_woocommerce_form_field', 10, 4); | |
function custom_woocommerce_form_field($field, $key, $args, $value){ | |
$field = str_replace('<p', '<div', $field); | |
$field = str_replace('</p>', '</div>', $field); | |
$field = str_replace('form-row', 'form-group', $field); | |
return $field; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment