| 1 |
<?php |
| 2 |
/** |
| 3 |
* Uninstall script for wp-parsely. It deletes the `parsely` option on the database. |
| 4 |
* |
| 5 |
* @package Parsely\wp-parsely |
| 6 |
* @since 3.0.0 |
| 7 |
*/ |
| 8 |
|
| 9 |
declare(strict_types=1); |
| 10 |
|
| 11 |
namespace Parsely; |
| 12 |
|
| 13 |
// If uninstall.php is not called by WordPress, die. |
| 14 |
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
| 15 |
die; |
| 16 |
} |
| 17 |
|
| 18 |
$parsely_option_name = 'parsely'; |
| 19 |
|
| 20 |
delete_option( $parsely_option_name ); |
| 21 |
|
| 22 |
// For site options in Multisite. |
| 23 |
delete_site_option( $parsely_option_name ); |
| 24 |
|