Files
BW/tbs/wp-content/plugins/si-contact-form/uninstall.php
sean 343b4a3f3f
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-19 18:32:17 -05:00

20 lines
533 B
PHP

<?php
/*
* Wordpress will run the code in this file when the user deletes the plugin
*
*/
// Be sure that Wordpress is deleting the plugin
if(defined('WP_UNINSTALL_PLUGIN') ){
// XXX Prompt to delete options
// settings get deleted when plugin is deleted from admin plugins page
delete_option('fs_contact_global');
// delete up to 100 forms (a unique configuration for each contact form)
for ($i = 1; $i <= 100; $i++) {
delete_option("fs_contact_form$i");
}
}
// end of file