Coursepress 2 helper functions

I had written a lot of custom reports around coursepress 1, pulling data from module_responseposts. In coursepress 2 the responses are now stored as user metadata. Are there any helper functions for me to query a user's answers?

  • Vaughan
    • Support/SLS MockingJay

    Hi Peter,

    There are helper functions & classes in the following location.

    /wp-content/plugins/coursepress/2.0/include/coursepress/helper/

    There is still a function for module_response though in the following class.

    /wp-content/plugins/coursepress/2.0/include/coursepress/data/class-student.php

    Hope this helps

  • Peter
    • Design Lord, Child of Thor

    I've found the helper functions, thank you. I can see there is a 'module_response' function but what I was trying to point out is that v2 no longer stores student responses in a custom post type of 'module_response', instead it builds an array in the user_meta table. This might be useful info for others attempting to extend the plugin.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.