Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Generator::generate_courses()

Generator called for bulk course imports


Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.generator.php

289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
    $backwards_compat = array(
        'course'      => 'courses',
        'section'     => 'sections',
        'lesson'      => 'lessons',
        'access_plan' => 'plans',
        'quiz'        => 'quizzes',
        'question'    => 'questions',
        'term'        => 'terms',
        'user'        => 'authors',
    );
    foreach ( $backwards_compat as $curr => $old ) {
        $stats[ $old ] = isset( $stats[ $curr ] ) ? $stats[ $curr ] : 0;
    }
 
    return $stats;
 
}
 
/**
 * Determines if there was an error during the running of the generator

Top ↑

Changelog Changelog

Changelog
Version Description
3.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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