Automattic\WooCommerce\Internal\Admin

OrderMilestoneEasterEgg::get_milestone_messages │ private │ WC 1.0

Returns milestone copy and variant configuration keyed by milestone name.

Метод класса: OrderMilestoneEasterEgg{}

Хуков нет.

Возвращает

array<string,. array<string, string>>

Использование

// private - только в коде основоного (родительского) класса
$result = $this->get_milestone_messages(): array;

Код OrderMilestoneEasterEgg::get_milestone_messages() WC 11.2.2

private function get_milestone_messages(): array {
	return array(
		'first'    => array(
			'title'    => __( 'Cha-ching! Order number one', 'woocommerce' ),
			'subtitle' => __( "That's a big deal. Smash the llama. You've earned it.", 'woocommerce' ),
			'variant'  => 'llama',
			'boomText' => __( 'One down', 'woocommerce' ),
		),
		'hundred'  => array(
			'title'    => __( 'Triple digits looks good on you', 'woocommerce' ),
			'subtitle' => __( "A hundred orders means you're juggling a lot. Take a moment to celebrate", 'woocommerce' ),
			'variant'  => 'octo',
			'boomText' => __( 'Hands full', 'woocommerce' ),
		),
		'thousand' => array(
			'title'    => __( 'ONE. THOUSAND. ORDERS', 'woocommerce' ),
			'subtitle' => __( 'Seriously. A thousand orders. This called for a bigger piñata', 'woocommerce' ),
			'variant'  => 'whale',
			'boomText' => __( 'Off the charts', 'woocommerce' ),
		),
	);
}