Gretings,
I need to extract the course from which the LTI has been launched in order to set course dependent options before directing users to appropriate blog (site) in the WP multi-site destination, using the file doConnect.php in the includes library.
Could you suggest how to do this? By printing out the class, I notice that [lti_context_id] is carrying the course ID in my case but I have no idea how to access it.
I am using Moodle 3.7+ and latest Wordpress 5.2.2.
Thank you.
Gretings, I need to extract the course from which the LTI has been launched in order to set course dependent options before directing users to appropriate blog (site) in the WP multi-site destination, using the file doConnect.php in the includes library. Could you suggest how to do this? By printing out the class, I notice that [lti_context_id] is carrying the course ID in my case but I have no idea how to access it. I am using Moodle 3.7+ and latest Wordpress 5.2.2. Thank you.