mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Do not run any action when Woo isn't active
This commit is contained in:
parent
b1bcdbc7be
commit
6c012b718c
1 changed files with 5 additions and 0 deletions
|
@ -146,6 +146,11 @@ define( 'PPCP_PAYPAL_BN_CODE', 'Woo_PPCP' );
|
|||
'plugins_loaded',
|
||||
function () {
|
||||
init();
|
||||
|
||||
if ( ! is_woocommerce_activated() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
add_action(
|
||||
'init',
|
||||
function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue