Support » Plugin: Chained Quiz » Using the results to change the user role’s

  • Resolved marcelxv

    (@marcelxv)


    I’m trying to use the result to determine my user’s profile and for that i create custom user roles. What i want achieve: when the user finishes the quiz, the result use a hook to change the user role.

Viewing 1 replies (of 1 total)
  • Plugin Author prasunsen

    (@prasunsen)

    There is a hook when the quiz is finished:

    do_action('chained_quiz_completed', $taking_id);

    You can use the $taking_id to get the result from the database and run your code accordingly to it.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.