Files
Testing/tbs/wp-content/plugins/si-contact-form/uninstall.php
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -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