Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Form_Post_Type::get_permalink_for_checkout()
Retrieve permalink for the checkout form
Return Return
(string)
Source Source
File: includes/forms/class-llms-form-post-type.php
private function get_permalink_for_checkout() { $url = llms_get_page_url( 'checkout' ); $args = array(); // Add an access plan to the URL. $plans = new WP_Query( array( 'post_type' => 'llms_access_plan', 'posts_per_page' => 1, 'orderby' => 'ID', 'order' => 'ASC', ) ); if ( $plans->have_posts() ) { $args = array( 'plan' => $plans->posts[0]->ID, ); } return LLMS_View_Manager::get_url( 'visitor', $url, $args ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |