Passed
Push — master ( fbf577...f911f0 )
by Daniel
02:00 queued 35s
created

uninstall.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * Delete the saved options freom the database when we uninstall the plugin
4
 * We do not do it when we deactivate the plugin, in case we want to maintain the data
5
 *
6
 * @package         algolia-woo-indexer
7
 */
8
9
/*
10
*  If uninstall was not called from WordPress, then exit
11
*/
12
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
13
	exit;
14
}
15
16
define( 'ALGOWOO_DB_OPTION', '_algolia_woo_indexer' );
17
18
delete_option( ALGOWOO_DB_OPTION . '_application_id' );
0 ignored issues
show
The function delete_option was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

18
/** @scrutinizer ignore-call */ 
19
delete_option( ALGOWOO_DB_OPTION . '_application_id' );
Loading history...
19
delete_option( ALGOWOO_DB_OPTION . '_admin_api_key' );
20
delete_option( ALGOWOO_DB_OPTION . '_index_name' );
21
delete_option( ALGOWOO_DB_OPTION . '_index_in_stock' );
22
delete_option( ALGOWOO_DB_OPTION . '_automatically_send_new_products' );
23