LLMS_Order::can_switch_source()

Determines if the order’s payment source can be changed.


Return Return

(boolean)


Top ↑

Source Source

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

497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
public function can_switch_source() {
 
    $can_switch = 'llms-active' === $this->get( 'status' ) || $this->can_resubscribe();
 
    /**
     * Filters whether or not the order's payment source can be changed.
     *
     * @since 7.0.0
     *
     * @param boolean    $can_switch Whether or not the order's source can be switched.
     * @param LLMS_Order $order      The order object.
     */
    return apply_filters( 'llms_order_can_switch_source', $can_switch, $this );
 
}


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.