WordPress at Your Fingertips
function is not described

WC_Email::get_recipient() public WC 1.0

Get valid recipients.

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

Hooks from the method

Return

String.

Usage

$WC_Email = new WC_Email();
$WC_Email->get_recipient();

Code of WC_Email::get_recipient() WC 5.9.0

public function get_recipient() {
	$recipient  = apply_filters( 'woocommerce_email_recipient_' . $this->id, $this->recipient, $this->object, $this );
	$recipients = array_map( 'trim', explode( ',', $recipient ) );
	$recipients = array_filter( $recipients, 'is_email' );
	return implode( ', ', $recipients );
}