PHP 8.0.30
Preview: OrderNoteGroup.php Size: 1.58 KB
/home/certprox/template.certproxywizard.com/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: 13

Name Size Perms Modified Actions
CardIcons DIR
- drwxr-xr-x 2026-06-08 11:45:45
Edit Download
3.57 KB lrw-r--r-- 2026-06-08 11:45:45
Edit Download
8.90 KB lrw-r--r-- 2026-07-01 09:03:38
Edit Download
2.19 KB lrw-r--r-- 2026-06-08 11:45:45
Edit Download
5.50 KB lrw-r--r-- 2026-06-08 11:45:45
Edit Download
24.32 KB lrw-r--r-- 2026-06-08 11:45:45
Edit Download
4.37 KB lrw-r--r-- 2026-06-08 11:45:45
Edit Download
16.55 KB lrw-r--r-- 2026-06-08 11:45:45
Edit Download
1.58 KB lrw-r--r-- 2026-06-08 11:45:45
Edit Download
2.55 KB lrw-r--r-- 2026-06-08 11:45:45
Edit Download
4.67 KB lrw-r--r-- 2026-06-08 11:45:45
Edit Download
1.80 KB lrw-r--r-- 2026-06-08 11:45:45
Edit Download
1.46 KB lrw-r--r-- 2026-06-08 11:45:45
Edit Download
1.80 KB lrw-r--r-- 2026-06-08 11:45:45
Edit Download

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