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.
Parameters Parameters
- $course_ids
-
(int[]) (Required) WP_Post IDs of the course(s) generated during the import.
Return Return
(string)
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' ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.8.0 | Introduced. |