WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

OrderMilestones::are_milestones_enabled() public WC 1.0

Convenience method to see if the milestone notes are enabled.

{} It's a method of the class: OrderMilestones{}

Return

true|false. True if milestone notifications are enabled.

Usage

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

Code of OrderMilestones::are_milestones_enabled() WC 5.3.0

<?php
public function are_milestones_enabled() {
	/**
	 * Filter to allow for disabling order milestones.
	 *
	 * @since 3.7.0
	 *
	 * @param boolean default true
	 */
	$milestone_notes_enabled = apply_filters( 'woocommerce_admin_order_milestones_enabled', true );

	return $milestone_notes_enabled;
}