LLMS_Metabox_Course_Builder::get_builder_url( int $course_id, string $hash = null )

Get a URL to the course builder with an optional hash to a lesson/quiz/assignment


Parameters Parameters

$course_id

(int) (Required) WP Post ID of a course.

$hash

(string) (Optional) Hash of the lesson & tab info (lesson:{$lesson_id}:tab).

Default value: null


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/admin/post-types/meta-boxes/class.llms.meta.box.course.builder.php

	public function get_builder_url( $course_id, $hash = null ) {

		$url = add_query_arg(
			array(
				'page'      => 'llms-course-builder',
				'course_id' => $course_id,
			),
			admin_url( 'admin.php' )
		);

		if ( $hash ) {
			$url = $url . '#' . $hash;
		}

		return $url;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.27.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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