automatewoo/includes/Async_Events/Subscription_Renewal_Payment_Failed.php
fei-source 47d3c9a8b6 Update to v6.2.2
Source: GrootMade/Festinger Vault
2026-03-15 08:31:15 +08:00

32 lines
628 B
PHP

<?php
namespace AutomateWoo\Async_Events;
defined( 'ABSPATH' ) || exit;
/**
* Class Subscription_Renewal_Payment_Failed
*
* @since 4.8.0
* @package AutomateWoo
*/
class Subscription_Renewal_Payment_Failed extends Subscription_Renewal_Payment_Complete {
/**
* Init the event.
*/
public function init() {
add_action( 'woocommerce_subscription_renewal_payment_failed', [ $this, 'schedule_event' ], 20, 2 );
}
/**
* Get the async event hook name.
*
* @since 5.2.0
*
* @return string
*/
public function get_hook_name(): string {
return 'automatewoo/subscription/renewal_payment_failed_async';
}
}