LLMS_Meta_Box_Order_Details::output()
Output metabox content
Return Return
(void)
Source Source
File: includes/admin/post-types/meta-boxes/class.llms.meta.box.order.details.php
public function output() { $order = llms_get_post( $this->post ); if ( ! $order || ! is_a( $order, 'LLMS_Order' ) ) { return; } $gateway = $order->get_gateway(); // Setup a list of gateways that this order can be switched to. $gateway_feature = $order->is_recurring() ? 'recurring_payments' : 'single_payments'; $switchable_gateways = array(); $switchable_gateway_fields = array(); foreach ( llms()->payment_gateways()->get_supporting_gateways( $gateway_feature ) as $id => $gateway_obj ) { $switchable_gateways[ $id ] = $gateway_obj->get_admin_title(); $switchable_gateway_fields[ $id ] = $gateway_obj->get_admin_order_fields(); } include LLMS_PLUGIN_DIR . 'includes/admin/views/metaboxes/view-order-details.php'; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.3.0 | Use llms() in favor of deprecated LLMS(). |
3.0.0 | Unknown. |
1.0.0 | Introduced. |