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.


Retrieve permalink for the checkout form

Return Return


Top ↑

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(
				'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 );


Top ↑

Changelog Changelog

Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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