Docly

Actions/Filters for Developers

Estimated reading: 3 minutes 50 views

The Arlo and LearnDash Integration plugin provides the following Actions and Filters that allow Developers to hook into its functionality. These can be used to create custom integrations or help with automation with your wider system. 

Filter: arlodash_completed_course

Description: Allows you to override the completion criteria for a course, that would dictate whether a learner’s completion data should be passed to Arlo.

				
					apply_filters( 'arlodash_completed_course', true, $data, $arlo_id, $user_integrations );
				
			

Filter: arlodash_completed_course

Description: Allows you to override the completion criteria for a group, that would dictate whether a learner’s completion data should be passed to Arlo.

				
					apply_filters( 'arlodash_completed_group', $completed_group_courses, $data, $arlo_id, $user_integrations, $group_courses, $completed_course_list );
				
			

Action: arlodash_added_user

Description: Fires after each new user is added from Arlo. Can be used to apply further actions to each user upon import, such as adding custom user metadata.

				
					do_action( 'arlodash_added_user', $user_id, $userdata );				
			

Leave a Comment

CONTENTS