Plugin Directory

Changeset 2768346


Ignore:
Timestamp:
08/09/2022 11:42:06 AM (4 years ago)
Author:
goaffpro
Message:

2.7.3 Added uninstall.php to perform proper cleanup

Location:
goaffpro/trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • goaffpro/trunk/goaffpro.php

    r2714806 r2768346  
    22/**
    33 * @package GoAffPro
    4  * @version 2.7.2
     4 * @version 2.7.3
    55 * @copyright Goaffpro
    66 * @licence GPL-2.0
     
    1515*/
    1616
    17 $goaffpro_plugin_version = "2.7.2";
    18 $goaffpro_plugin_version_code = 28;
     17$goaffpro_plugin_version = "2.7.3";
     18$goaffpro_plugin_version_code = 29;
    1919
    2020$goaffpro_token_key = 'goaffpro_public_token';
     
    3434    return $token;
    3535}
    36 
    37 /**
    38  * Register uninstall hook  and remove the token from database upon uninstall
    39  * */
    40 register_uninstall_hook(__FILE__, 'goaffpro_on_uninstall');
    41 
    42 function goaffpro_on_uninstall(){
    43     global $goaffpro_token_key;
    44     delete_option($goaffpro_token_key);
    45 }
    46 
    4736
    4837/**
Note: See TracChangeset for help on using the changeset viewer.