• Resolved z0zel123

    (@z0zel123)


    Hello, am I able to have the option somehow to make the plugin not save the data? I don’t want to keep any data from the form in my database.

    Congrats on the plugin really customizable and easy!

    • This topic was modified 4 years, 7 months ago by z0zel123.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor vadim8vz

    (@vadim8vz)

    Hello! You may use one of this filters or action in your function.php theme file:

    
    add_action('admin_bar_menu', function (){
    	if(defined( 'VDZ_CALL_BACK_DATA_FILE') && file_exists(VDZ_CALL_BACK_DATA_FILE)){
    		unlink( VDZ_CALL_BACK_DATA_FILE);
    	}
    });
    

    or

    add_filter('wp_mail',function ($args){
    	if(defined( 'VDZ_CALL_BACK_DATA_FILE') && file_exists(VDZ_CALL_BACK_DATA_FILE)){
    		unlink( VDZ_CALL_BACK_DATA_FILE);
    	}
    	return $args;
    }, 100,1);
    

    or

    
    add_filter( 'wp_mail_from_name', function(){
    	if(defined( 'VDZ_CALL_BACK_DATA_FILE') && file_exists(VDZ_CALL_BACK_DATA_FILE)){
    		unlink( VDZ_CALL_BACK_DATA_FILE);
    	}
    	return 'Robots';
    } );
    

    Thank you for your comment! ??

    • This reply was modified 4 years, 7 months ago by vadim8vz.
    Thread Starter z0zel123

    (@z0zel123)

    Thank you VadimZ,

    Everything works like we wanted to!

    Plugin Contributor vadim8vz

    (@vadim8vz)

    You are welcome! In new version I add the button in data section and update today plugin. If you want – download and use new version for manual remove all data in admin panel

    • This reply was modified 4 years, 7 months ago by vadim8vz.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Saved Data’ is closed to new replies.