uninstall.php in Code Embed 2.2.2, at uninstall.php
| 1 | <?php |
| 2 | /** |
| 3 | * Uninstaller |
| 4 | * |
| 5 | * Uninstall the plugin by removing any options from the database |
| 6 | * |
| 7 | * @package simple-embed-code |
| 8 | * @since 1.6 |
| 9 | */ |
| 10 | |
| 11 | // If the uninstall was not called by WordPress, exit |
| 12 | |
| 13 | if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
| 14 | exit(); |
| 15 | } |
| 16 | |
| 17 | // Delete any options |
| 18 | |
| 19 | delete_site_option( 'artiss_code_embed' ); |
| 20 | ?> |