-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make standalone plugin for easier development and testing.
- Loading branch information
1 parent
db351c6
commit 31e388c
Showing
3 changed files
with
66 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,9 +16,6 @@ | |
* | ||
* License: GPL-3.0-or-later | ||
* | ||
* Requires Plugins: pronamic-ideal | ||
* Depends: wp-pay/core | ||
* | ||
* GitHub URI: https://github.com/pronamic/wp-pronamic-pay-event-espresso | ||
* | ||
* @author Pronamic <[email protected]> | ||
|
@@ -27,6 +24,25 @@ | |
* @package Pronamic\WordPress\Pay\Extensions\EventEspresso | ||
*/ | ||
|
||
if ( ! defined( 'ABSPATH' ) ) { | ||
exit; | ||
} | ||
|
||
/** | ||
* Autoload. | ||
*/ | ||
require_once __DIR__ . '/vendor/autoload_packages.php'; | ||
|
||
/** | ||
* Bootstrap. | ||
*/ | ||
\Pronamic\WordPress\Pay\Plugin::instance( | ||
[ | ||
'file' => __FILE__, | ||
'action_scheduler' => __DIR__ . '/packages/woocommerce/action-scheduler/action-scheduler.php', | ||
] | ||
); | ||
|
||
add_filter( | ||
'pronamic_pay_plugin_integrations', | ||
function ( $integrations ) { | ||
|
@@ -41,3 +57,14 @@ function ( $integrations ) { | |
return $integrations; | ||
} | ||
); | ||
|
||
if ( class_exists( \Pronamic\WordPress\Pay\Gateways\Mollie\Integration::class ) ) { | ||
add_filter( | ||
'pronamic_pay_gateways', | ||
function ( $gateways ) { | ||
$gateways[] = new \Pronamic\WordPress\Pay\Gateways\Mollie\Integration(); | ||
|
||
return $gateways; | ||
} | ||
); | ||
} |