Retrieve a list of hooks that trigger engagements to be awarded.

Return Return


Top ↑

Source Source

File: includes/class.llms.engagements.php

	protected function get_trigger_hooks() {

		$hooks = array(

		// If there are any actions registered to this deprecated hook, add it to the list.
		if ( has_action( 'lifterlms_created_person' ) ) {
			$hooks[] = 'lifterlms_created_person';

		 * Filters the list of hooks which can trigger engagements to be sent/awarded.
		 * @since 2.3.0
		 * @param string[] $hooks List of hook names.
		return apply_filters( 'lifterlms_engagement_actions', $hooks );


Top ↑

Changelog Changelog

Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.