Learndash_Helpers::__construct()

Learndash_Helpers constructor.


Source Source

File: src/integrations/learndash/helpers/learndash-helpers.php

	public function __construct() {

		$this->load_options = Automator()->helpers->recipe->maybe_load_trigger_options( __CLASS__ );

		add_action( 'wp_ajax_select_lesson_from_course_LESSONDONE', array( $this, 'select_lesson_from_course_func' ) );
		add_action( 'wp_ajax_select_lesson_from_course_MARKLESSONDONE', array(
			$this,
			'select_lesson_from_course_no_any',
		) );

		add_action( 'wp_ajax_select_lesson_from_course_LD_TOPICDONE', array( $this, 'lesson_from_course_func' ), 15 );
		add_action( 'wp_ajax_select_lesson_from_course_MARKTOPICDONE', array(
			$this,
			'lesson_from_course_func_no_any',
		), 15 );

		add_action( 'wp_ajax_select_topic_from_lesson_MARKTOPICDONE', array(
			$this,
			'topic_from_lesson_func_no_any',
		), 15 );
		add_action( 'wp_ajax_select_topic_from_lesson_LD_TOPICDONE', array( $this, 'topic_from_lesson_func' ), 15 );
	}