forked from w3bdesign/wp-algolia-woo-indexer
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathuninstall.php
More file actions
22 lines (19 loc) · 686 Bytes
/
uninstall.php
File metadata and controls
22 lines (19 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
* Delete the saved options freom the database when we uninstall the plugin
* We do not do it when we deactivate the plugin, in case we want to maintain the data
*
* @package algolia-woo-indexer
*/
/*
* If uninstall was not called from WordPress, then exit
*/
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
define( 'ALGOWOO_DB_OPTION', '_algolia_woo_indexer' );
delete_option( ALGOWOO_DB_OPTION . '_application_id' );
delete_option( ALGOWOO_DB_OPTION . '_admin_api_key' );
delete_option( ALGOWOO_DB_OPTION . '_index_name' );
delete_option( ALGOWOO_DB_OPTION . '_index_in_stock' );
delete_option( ALGOWOO_DB_OPTION . '_automatically_send_new_products' );