This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @snippet WooCommerce: Save “Terms & Conditions” Acceptance @ Checkout | |
* @author Diego González - diegomox | |
* @compatible WooCommerce 8 | |
* @source This code is adapted from: https://www.businessbloomer.com/woocommerce-save-terms-conditions-user-acceptance-checkout | |
*/ | |
use Automattic\WooCommerce\Utilities\OrderUtil; |