Solved. Moodle passes the user details (name and id) and also the resource link. The resource link title is the course fullname followed by : followed by shortname. This can be filtered and mapped to different sites as desired.
In effect you can get SSO from Moodle to Wordpress multi-site. This is very powerful as it combines 2 very powerful software packages with a SSO (Moodle centric).
My scenario is Moodle as the main tool for school management as well as LMS. SSO into Wordpress sites for payments through woocommerce and also for intranet outside of Moodle.
Thanks to Simon Booth for his excellent software