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.

Метод класса: MyAccountEndpoint{}

Хуков нет.

Возвращает

string[]. List of NotificationStatus{} values.

Использование

$result = MyAccountEndpoint::get_cancellable_statuses(): array;

Код MyAccountEndpoint::get_cancellable_statuses() WC 11.2.2

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