• Resolved harosgc

    (@harosgc)


    Is it possible to remove all the shipping carriers except those that i added myself as custom ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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

    Thread Starter harosgc

    (@harosgc)

    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 !!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Remove all Carriers except custom’ is closed to new replies.