Merge pull request #1172 from woocommerce/PCP-1438-get-cart-warning

Use wp_loaded for fraudnet loading to avoid warnings
This commit is contained in:
Emili Castells 2023-02-13 15:15:53 +01:00 committed by GitHub
commit 36281f4a8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -258,7 +258,7 @@ class WCGatewayModule implements ModuleInterface {
); );
add_action( add_action(
'init', 'wp_loaded',
function () use ( $c ) { function () use ( $c ) {
if ( 'DE' === $c->get( 'api.shop.country' ) ) { if ( 'DE' === $c->get( 'api.shop.country' ) ) {
( $c->get( 'wcgateway.pay-upon-invoice' ) )->init(); ( $c->get( 'wcgateway.pay-upon-invoice' ) )->init();