I have this wordpress plugin im working on but what i want it to do is to hide the form on submit but its not working its still showing the form can anbody help. I am wanting to hide the form after submition
define('WP_DEBUG',true);
define('dtni_REGISTRATION_INCLUDE_URL', plugin_dir_url(__FILE__).'includes/');
ob_start();
//add front end css and js
function dtni_slider_trigger(){
wp_enqueue_style('dtni_css_and_js', dtni_REGISTRATION_INCLUDE_URL."front-style.css");
wp_register_script('dtni_css_and_js', dtni_REGISTRATION_INCLUDE_URL."font-script.js" );
wp_enqueue_script('dtni_css_and_