LLMS_Admin_Setup_Wizard::get_completed_url( int[] $course_ids )

Retrieve the redirect URL to use after an import is complete at the conclusion of the wizard

Description Description

If a single course is imported, redirects to that course’s edit page, otherwise redirects to the course post table list sorted by created date with the most recent courses first.

Top ↑

Parameters Parameters


(int[]) (Required) WP_Post IDs of the course(s) generated during the import.

Top ↑

Return Return


Top ↑

Source Source

File: includes/admin/class.llms.admin.setup.wizard.php

	protected function get_completed_url( $course_ids ) {

		$count = count( $course_ids );

		if ( 1 === $count ) {
			return get_edit_post_link( $course_ids[0], 'not-display' );

		return admin_url( 'edit.php?post_type=course&orderby=date&order=desc' );


Top ↑

Changelog Changelog

Version Description
4.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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