session || ! WC()->cart || WC()->cart->is_empty() ) { return $allow; } $restored = WC()->session->get( 'mint_restored_cart_detail' ); if ( empty( $restored['checkout_page_id'] ) || (int) $restored['checkout_page_id'] !== (int) get_the_ID() ) { return $allow; } return false; } /** * Check if Mail Mint is activated * * @return bool * @since 3.13.3 */ public function maybe_activate() { return defined( 'MRM_VERSION' ); } }