Taking things further
By cloning and adapting the "self" enrolment plugin, we have included some already useful features, such as providing enrolment keys for extra security (only those users with the key can actually enroll on a course--see https://docs.moodle.org/31/en/Enrolment_key).
With WordPress plugins, for instance https://en-gb.wordpress.org/plugins/groups/, we are able to group users and manage their capabilities and access to content in WordPress. There is the potential to use the WP-API to allow us to map Moodle roles to groups in WordPress. Remember that you will need to store the OAuth access tokens in the current PHP session in order to continue to use the API. Moodle also has the concept of course groups (https://docs.moodle.org/31/en/Groups ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access