dozent_get_next_curriculum_item_order_id( int $course_ID )
Get Next section order id
Parameters
- $course_ID
-
(int) (Required)
Return
(int)
Source
File: includes/core-functions.php
function dozent_get_next_curriculum_item_order_id( $course_ID ) { global $wpdb; $last_order = (int) $wpdb->get_var( "SELECT MAX(menu_order) FROM {$wpdb->posts} WHERE post_parent = {$course_ID} ;" ); return $last_order + 1; }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |