Thank you. Testing the code and will update you with the results
Here is the code that works for adding a tag to the user when the user completes a course:
add_action( 'wplms_submit_course', 'add_a_tag_when_complete_course', 10, 2 );
/**
* Add 2 tags when course with id 2481 is complete.
*
* @param $course_id int
* @param $user_id int
*/
function add_a_tag_when_complete_course( $course_id, $user_id ) {
if ( $course_id !== 2481 ) {
return;
}
$tags_to_add = [ 'FCAComplete', 'Course2Prospect' ];
// Get the contact by passing the user ID
$contact = \Groundhogg\get_contactdata( $user_id, true );
// Apply the tags
$contact->apply_tag( $tags_to_add );
}
It would be great if you could update the groundhogg integration plugin so that we can do this without having to work with codes.
Here are reference links for adding custom benchmarks for Groundhogg:
https://help.groundhogg.io/article/196-creating-custom-benchmark
hi @ICHARS
we have a good news we are working on the plugin and it is complete now.
at present we are testing it.
it is going to be released within this week
Hello,
Okay, can i closed this topic,
Thanks,
Any updates on this?
Also do check out the buddyboss integration for groundhogg, it is quite powerful. That may give you additional ideas for features.
yes the groundhogg 1.1 is released with tags
please check that and if you face any issue regarding that then it's a request to create new topic which will help the moderators to understand that in a better way.
and for the new integration we are super busy right now with wplms4.0 we are going to release it within this week
so the integration this time is not possible but yes you can create a feature request for this or the customization request as per your need.