Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | /** |
| 3 | * Template for the customer my-account single-order view which loads another template depending on whether the |
| 4 | * order has been paid or is still awaiting payment. |
| 5 | * |
| 6 | * @package brianhenryie/bh-wp-bitcoin-gateway |
| 7 | * |
| 8 | * @var array<string, mixed> $args The full array of data passed to the template function. |
| 9 | * @var WC_Order $order The order that Bitcoin is being used to pay. |
| 10 | */ |
| 11 | |
| 12 | if ( ! $order->is_paid() ) { |
| 13 | |
| 14 | wc_get_template( 'bitcoin-unpaid.php', $args ); |
| 15 | |
| 16 | } else { |
| 17 | |
| 18 | wc_get_template( 'bitcoin-paid.php', $args ); |
| 19 | } |