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
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 | 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. |