Standard Method for Auto-Enrolling Subscribers in Membership 2 to all CoursePress courses?

Basically, if someone buys a membership using the Membership 2 PRO plugin, I want them to be automatically enrolled in all courses.

I've come across a few solutions in the support forums for this, but I was curious if there's any sort of standard method that the devs now recommend.

This was the most recent thread I could find, but seems to indicate a slight bug with the code: https://premium.wpmudev.org/forums/topic/auto-enroll-in-coursepress-courses-based-on-membership2-membership-level

I'm also curious if that code would automatically enroll current subscribers in any new courses that are created (or if there's another way to do that?).

Thanks!