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

Automattic\WooCommerce\Admin\Notes

OrderMilestones::__construct() public WC 1.0

Delay hook attachment until after the WC post types have been registered.

This is required for retrieving the order count.

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

Хуки из метода
Возвращает

null. Ничего.

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

$OrderMilestones = new OrderMilestones();
$OrderMilestones->__construct();

Код OrderMilestones::__construct() WC 5.4.1

<?php
public function __construct() {
	/**
	 * Filter Order statuses that will count towards milestones.
	 *
	 * @since 3.5.0
	 *
	 * @param array $allowed_statuses Order statuses that will count towards milestones.
	 */
	$this->allowed_statuses = apply_filters( 'woocommerce_admin_order_milestone_statuses', $this->allowed_statuses );

	add_action( 'woocommerce_after_register_post_type', array( $this, 'init' ) );
	register_deactivation_hook( WC_ADMIN_PLUGIN_FILE, array( $this, 'clear_scheduled_event' ) );
}