LLMS_Admin_Builder::modify_take_over_link( string $link, int $post_id, string $context )

Modify the “Take Over” link on the post locked modal to send users to the builder when taking over a course


Parameters Parameters

$link

(string) (Required) Default post edit link.

$post_id

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

$context

(string) (Required) Display context.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/admin/class.llms.admin.builder.php

	public static function modify_take_over_link( $link, $post_id, $context ) {

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

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.13.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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