learndash_user_set_enrolled_courses

learndash_user_set_enrolled_courses( int $user_id,  array $user_courses_new = array() )

Enrolls the user in new courses.


Description #


Parameters #

$user_id

(int) (Optional) The ID of user to enroll courses. Default 0.

$user_courses_new

(array) (Optional) An array of new course ids to enroll a user.

Default value: array()


Source #

File: includes/ld-users.php


Changelog #

Changelog
Version Description
2.2.1 Introduced.