llms_update_3130_create_default_instructors()
Setup default instructor data for courses and memberships
Return Return
(void)
Source Source
File: includes/functions/updates/llms-functions-updates-3130.php
function llms_update_3130_create_default_instructors() { $query = new WP_Query( array( 'post_type' => array( 'course', 'llms_membership' ), 'posts_per_page' => -1, ) ); foreach ( $query->posts as $post ) { $course = llms_get_post( $post ); $course->set_instructors(); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.13.0 | Introduced. |