| 1 |
<?php |
| 2 |
/** |
| 3 |
* Fields settings Offline Payment |
| 4 |
*/ |
| 5 |
|
| 6 |
/** |
| 7 |
* @var LP_Gateway_Offline_Payment $lp_gateway_offline_payment |
| 8 |
*/ |
| 9 |
if ( ! isset( $lp_gateway_offline_payment ) ) { |
| 10 |
return []; |
| 11 |
} |
| 12 |
|
| 13 |
return apply_filters( |
| 14 |
'learn-press/gateway-payment/offline-payment/settings', |
| 15 |
array( |
| 16 |
array( |
| 17 |
'type' => 'title', |
| 18 |
), |
| 19 |
array( |
| 20 |
'title' => __( 'Enable', 'learnpress' ), |
| 21 |
'id' => '[enable]', |
| 22 |
'default' => 'yes', |
| 23 |
'type' => 'checkbox', |
| 24 |
), |
| 25 |
array( |
| 26 |
'title' => __( 'Testing Mode', 'learnpress' ), |
| 27 |
'id' => '[sandbox]', |
| 28 |
'default' => 'no', |
| 29 |
'type' => 'checkbox', |
| 30 |
'desc' => __( 'Auto complete the order for testing purpose.', 'learnpress' ), |
| 31 |
), |
| 32 |
array( |
| 33 |
'title' => __( 'Instruction', 'learnpress' ), |
| 34 |
'id' => '[description]', |
| 35 |
'default' => $lp_gateway_offline_payment->description, |
| 36 |
'type' => 'textarea', |
| 37 |
), |
| 38 |
array( |
| 39 |
'type' => 'sectionend', |
| 40 |
), |
| 41 |
) |
| 42 |
); |
| 43 |
|