AXO: Prevent loading scripts and executing logic in PayPal continuation mode

This commit is contained in:
Daniel Dudzic 2024-07-08 15:25:16 +02:00
parent d2e2f76f59
commit f758f4c2c8
No known key found for this signature in database
GPG key ID: 31B40D33E3465483
2 changed files with 7 additions and 4 deletions

View file

@ -137,6 +137,10 @@ trait ContextTrait {
case $this->is_block_editor():
$context = 'block-editor';
break;
case $this->is_paypal_continuation():
$context = 'continuation';
break;
}
return apply_filters( 'woocommerce_paypal_payments_context', $context );