MetaBox::save_course_metabox( $post_ID )


Parameters

$post_ID

(Required) Save Course Meta Box


Source

File: classes/MetaBox.php

	public function save_course_metabox( $post_ID ) {
		do_action( 'dozent/course_metabox/before_save', $post_ID );

		$_dozent_course_settings = dozent_input_array_field( '_dozent_course_settings' );
		if ( dozent_count( $_dozent_course_settings ) ) {
			update_post_meta( $post_ID, '_dozent_course_settings', $_dozent_course_settings );
		} else {
			delete_post_meta( $post_ID, '_dozent_course_settings' );
		}

		/**
		 * Intro Video
		 */
		$video = dozent_input_array_field( 'video' );
		update_post_meta( $post_ID, '_video', $video );


		do_action( 'dozent/course_metabox/saved', $post_ID );
	}