Automattic\WooCommerce\Internal\PushNotifications\Enums

SuppressionReason{} │ final │ WC 1.0

Reasons a notification was not sent to a token.

Хуков нет.

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

$SuppressionReason = new SuppressionReason();
// use class methods

Методы

Нет Методов у класса.

Код SuppressionReason{} WC 11.3.0

final class SuppressionReason {

	/**
	 * The user turned this notification type off.
	 *
	 * @var string
	 */
	public const NOTIFICATIONS_OFF = 'notifications_off';

	/**
	 * The user turned off this stock event type.
	 *
	 * @var string
	 */
	public const STOCK_ALERT_OFF = 'stock_alert_off';

	/**
	 * The order could not be loaded.
	 *
	 * @var string
	 */
	public const ORDER_MISSING = 'order_missing';

	/**
	 * The order total is below the amount the user asked to be told about.
	 *
	 * @var string
	 */
	public const BELOW_MIN_AMOUNT = 'below_min_amount';

	/**
	 * The review could not be loaded.
	 *
	 * @var string
	 */
	public const REVIEW_MISSING = 'review_missing';

	/**
	 * The review's rating is above the maximum the user asked to be told about.
	 *
	 * @var string
	 */
	public const ABOVE_MAX_RATING = 'above_max_rating';

	/**
	 * The token has no owning user, so there are no preferences to consult.
	 *
	 * @var string
	 */
	public const NO_ACCOUNT = 'no_account';
}