Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Disable International Shipping WC Vendors Pro
/* WC Vendors Pro - Disable International Shipping on Pro Vendor Dashboard */
/* Code written by Arvid V - Thanks! */
add_filter ('wcv_product_shipping_fee_international', 'ta_bort_internationell_frakt'); //Internaionell frakt, produkt
add_filter ('wcv_product_shipping_fee_international_qty', 'ta_bort_internationell_frakt'); //Checkruta 1, produkt
add_filter ('wcv_product_shipping_fee_international_disable', 'ta_bort_internationell_frakt'); //Checkruta 2, produkt
add_filter ('wcv_product_shipping_fee_international_free', 'ta_bort_internationell_frakt'); //Chckruta 3, produkt
add_filter ('wcv_shipping_international_fee', 'ta_bort_internationell_frakt'); //Internaionell frakt, butik
add_filter ('wcv_shipping_international_qty', 'ta_bort_internationell_frakt'); //Checkruta 1, butik
add_filter ('wcv_shipping_international_free', 'ta_bort_internationell_frakt'); //Checkruta 2, butik
add_filter ('wcv_shipping_international_disable', 'ta_bort_internationell_frakt'); //Checkruta 3, butik
function ta_bort_internationell_frakt() {
$fraktArray = array(
'id' => '_shipping_fee_international',
//'label' => __( 'International shipping fee', 'wcvendors-pro' ),
//'placeholder' => __( 'Change to override store defaults.', 'wcvendors-pro' ),
'desc_tip' => 'true',
//'description' => __( 'The cost to ship this product outside your country.', 'wcvendors-pro' ),
'type' => 'hidden',
'value' => $value,
'class' => 'wcv-disable-international-input',
'wrapper_start' => '<div class="all-50 small-100">',
'wrapper_end' => '</div></div>'
return $fraktArray;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment