woocommerce_analytics_update_tax

woocommerce_analytics_update_tax

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

do_action('woocommerce_analytics_update_tax') is found 1 times:

  • /src/Admin/API/Reports/Taxes/DataStore.php line 301
    			 *
    			 * @param int $tax_rate_id Tax Rate ID.
    			 * @param int $order_id    Order ID.
    			 */
    			do_action( 'woocommerce_analytics_update_tax', $tax_item->get_rate_id(), $order->get_id() );
    
    			// Sum the rows affected. Using REPLACE can affect 2 rows if the row already exists.
    			$num_updated += 2 === intval( $result ) ? 1 : intval( $result );
    		}
    
    		return ( count( $tax_items ) === $num_updated );