MetaBox::save_difficulty_level( $post_ID )


Source

File: classes/MetaBox.php

	public function save_difficulty_level( $post_ID ) {
		$difficulty_level = dozent_input_text( '_difficulty_level' );

		if ( $difficulty_level ) {
			update_post_meta( $post_ID, '_difficulty_level', $difficulty_level );
		} else {
			delete_post_meta( $post_ID, '_difficulty_level' );
		}
	}