diff --git a/src/Wooplatnica.php b/src/Wooplatnica.php index 1dc0132..c8404fa 100644 --- a/src/Wooplatnica.php +++ b/src/Wooplatnica.php @@ -708,7 +708,7 @@ public function add_wooplatnica_gateway_class($methods) public function email_instructions($order, $sent_to_admin, $plain_text = false) { if ($this->should_attach_payment_slip_in_email($order)) { - if ($sent_to_admin) { + if (!$sent_to_admin) { if ($this->options['instructions']) { echo wpautop(wptexturize($this->options['instructions'])).PHP_EOL; }