woocommerce_order_email_verification_grace_period
woocommerce_order_email_verification_grace_period
apply_filters('woocommerce_order_email_verification_grace_period') is found 2 times:
- /src/Blocks/BlockTypes/OrderConfirmation/AbstractOrderConfirmationBlock.php line 175
* @param int $grace_period Time in seconds after an order is placed before email verification may be required.
* @param \WC_Order $order The order for which this grace period is being assessed.
* @param string $context Indicates the context in which we might verify the email address. Typically ‘order-pay’ or ‘order-received’.
*/
$verification_grace_period = (int) apply_filters( ‘woocommerce_order_email_verification_grace_period’, 10 * MINUTE_IN_SECONDS, $order, ‘order-received’ );
$date_created = $order->get_date_created();return is_a( $date_created, \WC_DateTime::class ) && time() – $date_created->getTimestamp() <= $verification_grace_period; } /** [/php]
- /src/Internal/Utilities/Users.php line 67
* @param int $grace_period Time in seconds after an order is placed before email verification may be required.
* @param WC_Order $this The order for which this grace period is being assessed.
* @param string $context Indicates the context in which we might verify the email address. Typically ‘order-pay’ or ‘order-received’.
*/
$verification_grace_period = (int) apply_filters( ‘woocommerce_order_email_verification_grace_period’, 10 * MINUTE_IN_SECONDS, $order, $context );
$date_created = $order->get_date_created();// We do not need to verify the email address if we are within the grace period immediately following order creation.
if (
is_a( $date_created, \WC_DateTime::class, true )
&& time() – $date_created->getTimestamp() <= $verification_grace_period [/php]