Do not show subscription behavior setting if subscriptions plugin is not active

This commit is contained in:
dinamiko 2022-09-02 12:59:53 +02:00
parent b1a49a9af1
commit ae11b15164
8 changed files with 54 additions and 11 deletions

View file

@ -148,7 +148,8 @@ class WCGatewayModule implements ModuleInterface {
if ( $c->has( 'wcgateway.url' ) ) {
$assets = new SettingsPageAssets(
$c->get( 'wcgateway.url' ),
$c->get( 'ppcp.asset-version' )
$c->get( 'ppcp.asset-version' ),
$c->get( 'subscription.helper' )
);
$assets->register_assets();
}