llms_update_3130_create_default_instructors()

Setup default instructor data for courses and memberships


Return Return

(void)


Top ↑

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();
	}

}


Top ↑

Changelog Changelog

Changelog
Version Description
3.13.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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