LLMS_Payment_Gateway::get_admin_order_fields()
Get data about the fields displayed on the admin panel when viewing an order
Return Return
(array[])
Source Source
File: includes/abstracts/abstract.llms.payment.gateway.php
public function get_admin_order_fields() {
$fields = array(
'customer' => array(
'label' => __( 'Customer ID', 'lifterlms' ),
'enabled' => $this->admin_order_fields['customer'],
'name' => 'gateway_customer_id',
),
'source' => array(
'label' => __( 'Source ID', 'lifterlms' ),
'enabled' => $this->admin_order_fields['source'],
'name' => 'gateway_source_id',
),
'subscription' => array(
'label' => __( 'Subscription ID', 'lifterlms' ),
'enabled' => $this->admin_order_fields['subscription'],
'name' => 'gateway_subscription_id',
),
);
/**
* Filters a payment gateway's admin title.
*
* @since 3.10.0
*
* @param array[] $fields Array of admin order fields.
* @param string $gateway_id The payment gateway ID.
*/
return apply_filters( 'llms_get_gateway_admin_order_fields', $fields, $this->id );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.10.0 | Introduced. |