Hi,
Please add this code to the file functions.php of your theme:
add_filter( 'woo_orders_tracking_settings-shipping_carriers_define_list', 'villatheme_harosgc_woo_orders_tracking_hide_defined_carriers' );
if ( ! function_exists( 'villatheme_harosgc_woo_orders_tracking_hide_defined_carriers' ) ) {
function villatheme_harosgc_woo_orders_tracking_hide_defined_carriers( $shipping_carriers_define_list ) {
return '[]';
}
}
Best regards
Great.
I used above code, and all of carriers dispear.
Should I input custom carriers somewhere please?
Hi @alexsina,
Please go to plugin settings to add your own custom carriers.
Best regards
Hello
I need to do this too, but adding the code to my themes functions php is not working.
what should I do?
best regards
Daniel
Yeah, it doesn’t work anymore.
Hi @dsignorelli,@harosgc
Please use below code instead:
add_filter( 'woo_orders_tracking_defined_shipping_carriers', function ( $carriers ) {
return array();
} );
Best regards
Thank you very much @kimvt1991 !!