Automattic\WooCommerce\Internal\Admin\Notes

OrderMilestones::init()publicWC 1.0

Hook everything up.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of OrderMilestones::init() WC 7.1.0

public function init() {
	if ( ! wp_next_scheduled( self::PROCESS_ORDERS_MILESTONE_HOOK ) ) {
		wp_schedule_event( time(), 'hourly', self::PROCESS_ORDERS_MILESTONE_HOOK );
	}

	add_action( 'wc_admin_installed', array( $this, 'backfill_last_milestone' ) );

	add_action( self::PROCESS_ORDERS_MILESTONE_HOOK, array( $this, 'possibly_add_note' ) );
}