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


WC_Admin_Notes_Order_Milestones::get_note_content_for_milestone() public WC 1.0

Get the appropriate note content for a given milestone.

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

Хуков нет.


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


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

Код WC_Admin_Notes_Order_Milestones::get_note_content_for_milestone() WC 4.7.1

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