LLMS_Course::get_checkout_url()
Get checkout url
Description Description
Return Return
(string)
Source Source
File: includes/models/model.llms.course.php
public function get_checkout_url() { if ( llms_is_alternative_checkout_enabled() || is_user_logged_in() ) { $checkout_page_id = llms_get_page_id( 'checkout' ); } else { $checkout_page_id = llms_get_page_id( 'myaccount' ); } $checkout_url = apply_filters( 'lifterlms_get_checkout_url', $checkout_page_id ? get_permalink( $checkout_page_id ) : '' ); return apply_filters( 'lifterlms_product_purchase_checkout_redirect', add_query_arg( 'product-id', $this->id, $checkout_url ) ); }
Expand full source code Collapse full source code View on GitHub
User Contributed Notes User Contributed Notes
Permalink: