-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
uninstall.php
to delete options when plugin is uninstalled.
- Loading branch information
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,13 @@ | |
* Plugin Name: Google Analytics | ||
* Plugin URI: https://github.com/wearerequired/required-google-analytics | ||
* Description: Adds Google's global site tag (gtag.js) to your site, the modern way. | ||
* Version: 3.0.1 | ||
* Version: 3.1.0 | ||
* Author: required | ||
* Author URI: https://required.com | ||
* License: GPL-2.0+ | ||
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt | ||
* | ||
* Copyright (c) 2018-2022 required (email: [email protected]) | ||
* Copyright (c) 2018-2023 required (email: [email protected]) | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License, version 2 or, at | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
/** | ||
* Functionality that is executed when the plugin is uninstalled via built-in WordPress commands. | ||
*/ | ||
|
||
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { | ||
exit; | ||
} | ||
|
||
delete_option( 'required_ga_property_id' ); | ||
delete_option( 'required_ga4_measurement_id' ); |