mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
AXO: Prevent loading scripts and executing logic in PayPal continuation mode
This commit is contained in:
parent
d2e2f76f59
commit
f758f4c2c8
2 changed files with 7 additions and 4 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue