Automattic\WooCommerce\Internal\Admin
OrderMilestoneEasterEgg::get_milestone_messages
Returns milestone copy and variant configuration keyed by milestone name.
Method of the class: OrderMilestoneEasterEgg{}
No Hooks.
Returns
Array
Usage
// private - for code of main (parent) class only $result = $this->get_milestone_messages(): array;
OrderMilestoneEasterEgg::get_milestone_messages() OrderMilestoneEasterEgg::get milestone messages code WC 10.9.1
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' ),
),
);
}