Automattic\WooCommerce\Enums

CurrencyPosition{}finalWC 11.0.0

Enum class for the possible values of the woocommerce_currency_pos option, which determines where the currency symbol appears relative to the price.

No Hooks.

Usage

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

Methods

No Methods in class.

Changelog

Since 11.0.0 Introduced.

CurrencyPosition{} code WC 11.0.0

final class CurrencyPosition {
	/**
	 * Display the currency symbol to the left of the price.
	 *
	 * @var string
	 */
	public const LEFT = 'left';

	/**
	 * Display the currency symbol to the right of the price.
	 *
	 * @var string
	 */
	public const RIGHT = 'right';

	/**
	 * Display the currency symbol to the left of the price, separated by a space.
	 *
	 * @var string
	 */
	public const LEFT_SPACE = 'left_space';

	/**
	 * Display the currency symbol to the right of the price, separated by a space.
	 *
	 * @var string
	 */
	public const RIGHT_SPACE = 'right_space';
}