remove debug code

This commit is contained in:
David Remer 2020-07-28 07:07:14 +03:00
parent 8f39b71e7f
commit e5494bfc8b

View file

@ -28,7 +28,7 @@ class SubscriptionModule implements ModuleInterface
{
add_action(
'woocommerce_scheduled_subscription_payment_' . WcGateway::ID,
function($amount, $order) use ($container) {
static function ($amount, $order) use ($container) {
if (! is_a($order, \WC_Order::class)) {
return;
}
@ -39,19 +39,5 @@ class SubscriptionModule implements ModuleInterface
2
);
add_action(
'init',
function () {
if (! isset($_GET['doit'])) {
return;
}
$order = wc_get_order(202);
do_action(
'woocommerce_scheduled_subscription_payment_' . WcGateway::ID,
0,
$order
);
}
);
}
}