Add script for disabling subscription product form fields

This commit is contained in:
Emili Castells Guasch 2023-06-08 12:39:08 +02:00
parent 21fd894d7a
commit c570621b67
10 changed files with 2338 additions and 1 deletions

View file

@ -54,4 +54,15 @@ return array(
$container->get( 'woocommerce.logger.woocommerce' )
);
},
'subscription.module.url' => static function ( ContainerInterface $container ): string {
/**
* The path cannot be false.
*
* @psalm-suppress PossiblyFalseArgument
*/
return plugins_url(
'/modules/ppcp-subscription/',
dirname( realpath( __FILE__ ), 3 ) . '/woocommerce-paypal-payments.php'
);
},
);