Docly

Actions/Filters for Developers

Estimated reading: 3 minutes 82 views

Cohort Manager 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. 

Action: cohort_manager_workflow_updated

Description: Fires whenever a change is made to a workflow.

				
					do_action('cohort_manager_workflow_updated',$workflow,$interaction_type,$timestamp);
				
			

Action: cohort_manager_interaction_deleted

Description: Fires whenever an interaction is deleted from a workflow.

				
					do_action('cohort_manager_interaction_deleted',$interaction);				
			

Action: cohort_manager_workflow_deleted

Description: Fires whenever a workflow is deleted.

				
					do_action('cohort_manager_workflow_deleted',$workflow);				
			

Action: cohort_manager_new_workflow

Description: Fires whenever a new workflow is created.

				
					do_action('cohort_manager_new_workflow',$workflow);				
			

Filter: cohort_manager_email_recipients

Description: Allows you to manipulate an array of recipients who would receive an email from a “Send email to…” interaction.

				
					apply_filters('cohort_manager_email_recipients',$recipients);				
			

Filter: cohort_manager_custom_email_subject

Description: Allows you to alter the subject line of an automated email for specific recipients.

				
					apply_filters('cohort_manager_custom_email_subject',$email_subject,$recipient);				
			

Filter: cohort_manager_custom_email_content

Description: Allows you to alter the content of an automated email for specific recipients.

				
					apply_filters('cohort_manager_custom_email_content',$email_content,$recipient);				
			

Action: cohort_manager_email_sent

Description: Fires after every email sent via a “Send email to…” interaction. Useful for logging emails sent.

				
					do_action('cohort_manager_email_sent', $recipient_email, $email_subject, $email_content);				
			

Action: cohort_manager_group_enrolled_onto_course

Description: Fires after a group is enrolled onto a course by Cohort Manager.

				
					do_action('cohort_manager_group_enrolled_onto_course',$group_id,$course_id);
				
			

Action: cohort_manager_group_enrolled_onto_course

Description: Fires after a group is unenrolled from a course by Cohort Manager.

				
					do_action('cohort_manager_group_unenrolled_from_course',$group_id,$course_id);				
			

Action: cohort_manager_workflow_cloned

Description: Fires after a workflow is cloned.

				
					do_action('cohort_manager_workflow_cloned',$cloned_workflow,$new_workflow);				
			

Leave a Comment

CONTENTS