Ajax::dozent_option_save()


Source

File: classes/Ajax.php

	public function dozent_option_save() {
		dozent_checking_nonce();

		do_action( 'dozent_option_save_before' );

		$option = (array) dozent_input_array_field( 'dozent_option' );
		$option = apply_filters( 'dozent_option_input', $option );
		update_option( 'dozent_options', $option );

		do_action( 'dozent_option_save_after' );

		wp_send_json_success( [ 'msg' => __( 'Dozent options has been saved', 'dozent' ) ] );
	}