Automattic\WooCommerce\Internal\Orders

OrderNoteGroup::get_default_group_titlepublic staticWC 1.0

Get the default group title for a given group.

Method of the class: OrderNoteGroup{}

No Hooks.

Returns

String. The default group title.

Usage

$result = OrderNoteGroup::get_default_group_title( $group ): string;
$group(string) (required)
The group.

OrderNoteGroup::get_default_group_title() code WC 10.7.0

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' );
	}
}