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
Return Return
(string)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.27.0 | Introduced. |