Add module boilerplate

This commit is contained in:
Emili Castells Guasch 2023-11-08 12:46:01 +01:00
parent ac7779bc41
commit 1125ca6ad5
14 changed files with 2565 additions and 0 deletions

View file

@ -52,5 +52,13 @@ return function ( string $root_dir ): iterable {
$modules[] = ( require "$modules_dir/ppcp-saved-payment-checker/module.php" )();
}
if ( apply_filters(
//phpcs:disable WordPress.NamingConventions.ValidHookName.UseUnderscores
'woocommerce.feature-flags.woocommerce_paypal_payments.card_fields_enabled',
getenv( 'PCP_CARD_FIELDS_ENABLED' ) === '1'
) ) {
$modules[] = ( require "$modules_dir/ppcp-card-fields/module.php" )();
}
return $modules;
};