Created
July 13, 2017 04:07
-
-
Save fervous/a0602993f36b82b334bd2b80a6eb9be5 to your computer and use it in GitHub Desktop.
hide shipping fields quantity free wc vendors pro
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
/* hides shipping fields from the vendor settings form - placed in child theme functions.php */ | |
add_filter ('wcv_shipping_national_qty', 'wcv_hide_field'); | |
add_filter ('wcv_shipping_international_qty', 'wcv_hide_field'); | |
add_filter ('wcv_shipping_international_free', 'wcv_hide_field'); | |
add_filter ('wcv_shipping_international_disable', 'wcv_hide_field'); | |
add_filter ('wcv_shipping_national_free', 'wcv_hide_field'); | |
add_filter ('wcv_shipping_national_disable', 'wcv_hide_field'); | |
function wcv_hide_field ($args) { | |
$args[ 'type' ] = 'hidden'; | |
$args[ 'show_label' ] = false; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment