includes/gateways/cheque/class-wc-gateway-cheque.php 1 location
|
@@ 100-102 (lines=3) @@
|
| 97 |
|
* @param bool $plain_text |
| 98 |
|
*/ |
| 99 |
|
public function email_instructions( $order, $sent_to_admin, $plain_text = false ) { |
| 100 |
|
if ( $this->instructions && ! $sent_to_admin && 'cheque' === $order->payment_method && $order->has_status( 'on-hold' ) ) { |
| 101 |
|
echo wpautop( wptexturize( $this->instructions ) ) . PHP_EOL; |
| 102 |
|
} |
| 103 |
|
} |
| 104 |
|
|
| 105 |
|
/** |
includes/gateways/cod/class-wc-gateway-cod.php 1 location
|
@@ 235-237 (lines=3) @@
|
| 232 |
|
* @param bool $plain_text |
| 233 |
|
*/ |
| 234 |
|
public function email_instructions( $order, $sent_to_admin, $plain_text = false ) { |
| 235 |
|
if ( $this->instructions && ! $sent_to_admin && 'cod' === $order->payment_method ) { |
| 236 |
|
echo wpautop( wptexturize( $this->instructions ) ) . PHP_EOL; |
| 237 |
|
} |
| 238 |
|
} |
| 239 |
|
} |
| 240 |
|
|