mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
add modules filter
This commit is contained in:
parent
72e5a49175
commit
7d2468de00
1 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,11 @@ define( 'PPCP_FLAG_SUBSCRIPTION', true );
|
|||
$modules[] = ( require $module_file )();
|
||||
}
|
||||
$providers = array();
|
||||
|
||||
//Use this filter to add custom module or remove some of existing ones.
|
||||
//Modules able to access container, add services and modify existing ones.
|
||||
$modules = apply_filters('woocommerce_paypal_payments_modules', $modules);
|
||||
|
||||
foreach ( $modules as $module ) {
|
||||
/* @var $module ModuleInterface module */
|
||||
$providers[] = $module->setup();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue