MetaBox::course_builder_frontend_support( $sections )


Source

File: classes/MetaBox.php

	public function course_builder_frontend_support( $sections ){
		global $dozent_course_creation_page;

		if ( $dozent_course_creation_page !== 'frontend' ){
			return $sections;
		}

		$course_front_field = [];
		$course_front_field[ 'essential' ] = [
			'title'      => __( 'Essential', 'dozent' ),
			'icon_class' => ' dicon-graduation-cap',
			'callback'   => [ $this, 'course_essential' ],
        ];

		$sections = array_merge( $course_front_field, $sections );

		return $sections;
    }