LLMS_Order::get_switch_source_action()

Retrieves the user action required when changing the order’s payment source.


Return Return

(null|string) Returns switch when the payment source can be switched and pay when payment on the new source is required before switching. A null return indicates that the order's payment source cannot be switched.


Top ↑

Source Source

File: includes/models/model.llms.order.php

1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
     * @since 7.1.0 Added the `$format` parameter.
     *
     * @param string     $date   The formatted start date for the order.
     * @param LLMS_Order $order  The order object.
     * @param string     $format The requested format of the date.
     */
    return apply_filters( 'llms_order_get_start_date', $date, $this, $format );
}
 
/**
 * Retrieves the user action required when changing the order's payment source.
 *
 * @since 7.0.0
 *
 * @return null|string Returns `switch` when the payment source can be switched and `pay` when payment on the new source
 *                     is required before switching. A `null` return indicates that the order's payment source cannot be switched.
 */
public function get_switch_source_action() {


Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.