Automattic\WooCommerce\Internal\StockNotifications\Frontend

MyAccountEndpoint::get_cancellable_statuses │ public static │ WC 1.0

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() code WC 11.2.1

public static function get_cancellable_statuses(): array {
	return array( NotificationStatus::PENDING, NotificationStatus::ACTIVE );
}