PHP 8.2.31
Preview: OrderNoteGroup.php Size: 1.58 KB
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/woocommerce/src/Internal/Orders/OrderNoteGroup.php

<?php

declare( strict_types = 1 );

namespace Automattic\WooCommerce\Internal\Orders;

/**
 * Enum class for order note groups. This is stored as meta data to categorize order notes.
 *
 * This is not surfaced in core UI presently.
 */
final class OrderNoteGroup {
	/**
	 * Any note concerning errors.
	 *
	 * @var string
	 */
	public const ERROR = 'error';

	/**
	 * Any note concerning emails to customers.
	 *
	 * @var string
	 */
	public const EMAIL_NOTIFICATION = 'email_notification';

	/**
	 * Any note concerning stock levels.
	 *
	 * @var string
	 */
	public const PRODUCT_STOCK = 'product_stock';

	/**
	 * Any note concerning payments.
	 *
	 * @var string
	 */
	public const PAYMENT = 'payment';

	/**
	 * Any note concerning order updates.
	 *
	 * @var string
	 */
	public const ORDER_UPDATE = 'order_update';

	/**
	 * Any note concerning fulfillments.
	 *
	 * @var string
	 */
	public const FULFILLMENT = 'fulfillment';

	/**
	 * Get the default group title for a given group.
	 *
	 * @param string $group The group.
	 * @return string The default group title.
	 */
	public static function get_default_group_title( string $group ): string {
		switch ( $group ) {
			case self::PRODUCT_STOCK:
				return __( 'Product stock', 'woocommerce' );
			case self::PAYMENT:
				return __( 'Payment', 'woocommerce' );
			case self::EMAIL_NOTIFICATION:
				return __( 'Email notification', 'woocommerce' );
			case self::ERROR:
				return __( 'Error', 'woocommerce' );
			case self::FULFILLMENT:
				return __( 'Fulfillment', 'woocommerce' );
			default:
				return __( 'Order updated', 'woocommerce' );
		}
	}
}

Directory Contents

Dirs: 1 × Files: 12

Name Size Perms Modified Actions
CardIcons DIR
- drwxr-xr-x 2026-05-29 02:43:21
Edit Download
3.57 KB lrw-r--r-- 2025-11-24 23:10:10
Edit Download
2.19 KB lrw-r--r-- 2025-01-21 18:53:44
Edit Download
5.50 KB lrw-r--r-- 2024-04-10 16:54:10
Edit Download
24.32 KB lrw-r--r-- 2026-03-30 17:12:24
Edit Download
4.37 KB lrw-r--r-- 2025-03-03 22:28:12
Edit Download
16.55 KB lrw-r--r-- 2026-01-19 14:46:18
Edit Download
1.58 KB lrw-r--r-- 2026-03-30 17:12:24
Edit Download
2.55 KB lrw-r--r-- 2026-01-19 14:46:18
Edit Download
4.67 KB lrw-r--r-- 2025-09-01 23:44:48
Edit Download
1.80 KB lrw-r--r-- 2026-03-30 17:12:24
Edit Download
1.46 KB lrw-r--r-- 2026-03-30 17:12:24
Edit Download
1.80 KB lrw-r--r-- 2022-08-24 02:07:06
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).