CourseBuilder::__construct()


Source

File: classes/CourseBuilder.php

	public function __construct() {
		//Frontend Course Save
		add_action( 'wp_ajax_front_save_course', [ $this, 'front_save_course' ] );

		add_action( 'save_post_dozent_course', [ $this, '_save_course' ], 10, 2 );

		add_action( 'dozent/save_course', [ $this, 'attach_current_instructor' ] );
		add_action( 'dozent/course_metabox/saved', [ $this, 'save_course_access_method' ] );

		add_action( 'dozent_course/course_tab_content/before/curriculum', [ $this, 'course_builder' ] );
		add_action( 'wp_ajax_dozent_save_new_section', [ $this, 'save_new_section' ] );
		add_action( 'wp_ajax_dozent_update_section', [ $this, 'update_section' ] );
		add_action( 'wp_ajax_dozent_save_lecture', [ $this, 'dozent_save_lecture' ] );
		add_action( 'wp_ajax_load_lecture_editor', [ $this, 'load_lecture_editor' ] );
		add_action( 'wp_ajax_lecture_load_edit', [ $this, 'lecture_load_edit' ] );
		add_action( 'wp_ajax_delete_course_content', [ $this, 'delete_course_content' ] );
		add_action( 'wp_ajax_sorting_curriculum_items', [ $this, 'sorting_curriculum_items' ] );
		add_action( 'wp_ajax_delete_section', [ $this, 'delete_section' ] );

		//Sync Content with Course
		add_action( 'dozent/lecture/saved', [ $this, 'sync_content_with_course' ], 10, 3 );
		add_action( 'dozent/quiz/saved', [ $this, 'sync_content_with_course' ], 10, 3 );

	}