src/Hametuha/HametWoo.php
public function send_mail( $mail_id, $arguments = [] ) {
		$mailers = WC()->mailer()->get_emails();
		foreach ( $mailers as $mailer ) {
			/* @var \WC_Email $mailer */
			if ( $mail_id == $mailer->id ) {
				if ( $arguments ) {
					call_user_func_array( [ $mailer, 'trigger' ], $arguments );
				} else {
					$mailer->trigger();
				}
			}
		}
	}
public function send_mail( $mail_id, $arguments = [] ) {
		$mailers = WC()->mailer()->get_emails();
		foreach ( $mailers as $mailer ) {
			/* @var \WC_Email $mailer */
			if ( $mail_id == $mailer->id ) {
				if ( $arguments ) {
					call_user_func_array( [ $mailer, 'trigger' ], $arguments );
				} else {
					$mailer->trigger();
				}
			}
		}
	}
public function send_mail ( $ mail_id , $ arguments = [ ] ) { $ mailers = WC ( ) -> mailer ( ) -> get_emails ( ) ; foreach ( $ mailers as $ mailer ) { /* @var \WC_Email $mailer */ if ( $ mail_id == $ mailer -> id ) { if ( $ arguments ) { call_user_func_array ( [ $ mailer , 'trigger' ] , $ arguments ) ; } else { $ mailer -> trigger ( ) ; } } } }
Send email short hand.

@param string $mail_id   Mail ID.
@param array  $arguments Argument passed to $mailer->trigger.
Send email short hand .