mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
parent
280fc86d5f
commit
72e5a49175
1 changed files with 1 additions and 5 deletions
|
@ -73,11 +73,7 @@ define( 'PPCP_FLAG_SUBSCRIPTION', true );
|
|||
static $initialized;
|
||||
if ( ! $initialized ) {
|
||||
$modules = array( new PluginModule() );
|
||||
$module_files = glob( plugin_dir_path( __FILE__ ) . 'modules/*/module.php' );
|
||||
|
||||
//Use this filter to add custom module or remove some of added ones.
|
||||
$module_files = apply_filters('woocommerce_paypal_payments_module_files_list', $module_files);
|
||||
foreach ( $module_files as $module_file ) {
|
||||
foreach ( glob( plugin_dir_path( __FILE__ ) . 'modules/*/module.php' ) as $module_file ) {
|
||||
$modules[] = ( require $module_file )();
|
||||
}
|
||||
$providers = array();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue