wp_back/wp-content/plugins/svg-support/uninstall.php

10 lines
346 B
PHP
Raw Permalink Normal View History

2024-05-20 15:37:46 +03:00
<?php if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
$bodhi_options_on_deletion = get_option( 'bodhi_svgs_settings' );
if ( isset($bodhi_options_on_deletion[ 'del_plugin_data' ]) && $bodhi_options_on_deletion[ 'del_plugin_data' ] === 'on' ) {
delete_option( 'bodhi_svgs_plugin_version' );
delete_option( 'bodhi_svgs_settings' );
}