woocommerce_analytics_update_coupon

woocommerce_analytics_update_coupon

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_analytics_update_coupon') is found 1 times:

  • /src/Admin/API/Reports/Coupons/DataStore.php line 441
    			 *
    			 * @param int $coupon_id Coupon ID.
    			 * @param int $order_id  Order ID.
    			 */
    			do_action( 'woocommerce_analytics_update_coupon', $coupon_id, $order_id );
    
    			// Sum the rows affected. Using REPLACE can affect 2 rows if the row already exists.
    			$num_updated += 2 === intval( $result ) ? 1 : intval( $result );
    		}
    
    		if ( ! empty( $existing_items ) ) {