MetaBox::__construct()


Source

File: classes/MetaBox.php

	public function __construct() {
		add_action( 'add_meta_boxes', [ $this, 'register_meta_box' ] );
		/**
		 * Frontend Course Create Support
		 */
		add_action( 'dozent/frontend/create-course', [ $this, 'frontend_course_builder' ] );

		add_action( 'wp_ajax_dozent_save_course_metabox', [ $this, 'dozent_save_course_metabox' ] );

		add_action( 'dozent_course/course_tab_content/before/general', [ $this, 'course_access_method' ] );
		add_action( 'dozent_course/course_tab_content/after/general', [ $this, 'add_difficulty_level' ] );

		add_action( 'dozent/course_metabox/saved', [ $this, 'save_difficulty_level' ] );
		add_action( 'dozent/course_metabox/saved', [ $this, 'save_information' ] );

		//Course Builder Frontend Support
        add_filter( 'dozent_course_settings_tabs', [ $this, 'course_builder_frontend_support' ] );
	}