woocommerce_order_hide_shipping_address

woocommerce_order_hide_shipping_address

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_order_hide_shipping_address') is found 1 times:

  • /includes/class-wc-order.php line 1636
    		if ( 'no' === get_option( 'woocommerce_calc_shipping' ) ) {
    			return false;
    		}
    
    		$hide          = apply_filters( 'woocommerce_order_hide_shipping_address', array( 'local_pickup' ), $this );
    		$needs_address = false;
    
    		foreach ( $this->get_shipping_methods() as $shipping_method ) {
    			$shipping_method_id = $shipping_method->get_method_id();
    
    			if ( ! in_array( $shipping_method_id, $hide, true ) ) {
    

See this hook used in plugins: