woocommerce_order_before_calculate_taxes

woocommerce_order_before_calculate_taxes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_order_before_calculate_taxes') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 1793
    	 *
    	 * @param array $args Added in 3.0.0 to pass things like location.
    	 */
    	public function calculate_taxes( $args = array() ) {
    		do_action( 'woocommerce_order_before_calculate_taxes', $args, $this );
    
    		$calculate_tax_for  = $this->get_tax_location( $args );
    		$shipping_tax_class = get_option( 'woocommerce_shipping_tax_class' );
    
    		if ( 'inherit' === $shipping_tax_class ) {
    			$found_classes      = array_intersect( array_merge( array( '' ), WC_Tax::get_tax_class_slugs() ), $this->get_items_tax_classes() );