WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Авторские Темы для WordPress
функция не описана

Automattic\WooCommerce\Admin\Notes

OrderMilestones::get_note_content_for_milestone() public WC 1.0

Get the appropriate note content for a given milestone.

{} Это метод класса: OrderMilestones{}

Хуков нет.

Возвращает

Строку. Note content for the milestone.

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

$OrderMilestones = new OrderMilestones();
$OrderMilestones->get_note_content_for_milestone( $milestone );
$milestone(int) (обязательный)
Order milestone.

Код OrderMilestones::get_note_content_for_milestone() WC 5.4.1

<?php
public function get_note_content_for_milestone( $milestone ) {
	switch ( $milestone ) {
		case 1:
			return __( 'Congratulations on getting your first order! Now is a great time to learn how to manage your orders.', 'woocommerce' );
		case 10:
			return __( "You've hit the 10 orders milestone! Look at you go. Browse some WooCommerce success stories for inspiration.", 'woocommerce' );
		case 100:
		case 250:
		case 500:
		case 1000:
		case 5000:
		case 10000:
		case 500000:
		case 1000000:
			return __( 'Another order milestone! Take a look at your Orders Report to review your orders to date.', 'woocommerce' );
		default:
			return '';
	}
}