ID, '_slms_parent_unit', true ); $sort_order = get_post_meta( $post->ID, '_slms_sort_order', true ); $content_type = get_post_meta( $post->ID, '_slms_content_type', true ) ?: 'text'; $video_url = get_post_meta( $post->ID, '_slms_video_url', true ); // Only parents this user can edit (plus the current one), so an instructor sees their own. $units = Capabilities::filter_parent_options( get_posts( array( 'post_type' => 'slms_unit', 'posts_per_page' => -1, 'post_status' => array( 'publish', 'draft' ), 'orderby' => 'title', 'order' => 'ASC', ) ), (int) $parent_unit ); ?>

ID, '_slms_attachments', true ); if ( ! is_array( $attachments ) ) { $attachments = array(); } wp_enqueue_media(); ?>