WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes\MerchantEmailNotifications

MerchantEmailNotifications::get_notification_email_addresses() public WC 1.0

Get email addresses by role to notify.

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

No Hooks.

Return

Array. Emails to notify

Usage

$result = MerchantEmailNotifications::get_notification_email_addresses( $note );
$note(object) (required)
The note to send.

Code of MerchantEmailNotifications::get_notification_email_addresses() WC 5.2.2

<?php
public static function get_notification_email_addresses( $note ) {
	$content_data = $note->get_content_data();
	$role         = 'administrator';
	if ( isset( $content_data->role ) ) {
		$role = $content_data->role;
	}
	$args  = array( 'role' => $role );
	$users = get_users( $args );
	return array_column( $users, 'user_email' );
}