Automattic\WooCommerce\Internal\StockNotifications\Frontend
MyAccountEndpoint::get_cancellable_statuses
Statuses a customer can still cancel from My Account.
Backs the Cancel button in the template and the cancel request handler, so the two can't drift apart. The listing itself splits into a pending table and an active table, each querying a single status.
Method of the class: MyAccountEndpoint{}
No Hooks.
Returns
string[]. List of NotificationStatus{} values.
Usage
$result = MyAccountEndpoint::get_cancellable_statuses(): array;
MyAccountEndpoint::get_cancellable_statuses() MyAccountEndpoint::get cancellable statuses code WC 11.2.1
public static function get_cancellable_statuses(): array {
return array( NotificationStatus::PENDING, NotificationStatus::ACTIVE );
}