Do not run any action when Woo isn't active

This commit is contained in:
Narek Zakarian 2025-07-02 17:22:35 +04:00
parent b1bcdbc7be
commit 6c012b718c
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -146,6 +146,11 @@ define( 'PPCP_PAYPAL_BN_CODE', 'Woo_PPCP' );
'plugins_loaded',
function () {
init();
if ( ! is_woocommerce_activated() ) {
return;
}
add_action(
'init',
function () {