Plugin Directory

Changeset 2790885


Ignore:
Timestamp:
09/27/2022 03:47:39 PM (3 years ago)
Author:
webxid
Message:

1.0.1

  • The last WP version Checked
  • Removed uninstall logic - so, if you deactivate then activate the plugin, the all data will be available as before the deactivation
Location:
bots-master/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • bots-master/trunk/README.txt

    r2718601 r2790885  
    44Tags: telegram, bot, responder, messaging, mailing, chatbot, chat-bot, chat
    55Requires at least: 4.9
    6 Tested up to: 5.9.2
    7 Stable tag: 1.0.0
     6Tested up to: 6.0.2
     7Stable tag: 1.0.1
    88Requires PHP: 7.2
    99License: Apache 2.0
     
    3838== Uninstall The Plugin ==
    3939
    40 After the plugin deactivating, all the Plugin data will be **removed permanently**.
     40To uninstall the plugin permanently, follow the next steps:
     411. Drop the DB table *wx_bot_users*:
     42
     43SQL Query: `DROP TABLE IF EXISTS wx_bot_users;`
     44
     452. Remove WP Options:
     46
     47`delete_option('telegram_api_token');
     48delete_option('welcome_message');
     49delete_option('unknown_message');`
     50
     51Done! Now, there is no data of the plugin in DB
    4152
    4253== How To Use ==
    4354
    44 ### Collect Sudscribers
     55### Collect Subscribers
    4556
    4657!!! IMPORTANT !!!
     
    98109== Changelog ==
    99110
     111= 1.0.1 =
     112* The last WP version Checked
     113* Removed uninstall logic - so, if you deactivate then activate the plugin, the all data will be available as before the deactivation
     114
    100115= 1.0 =
    101116* Initial
  • bots-master/trunk/app/BotsMaster.php

    r2709170 r2790885  
    145145        // Install DB
    146146        DB::query("
    147             CREATE TABLE `" . BotUser::TABLE_NAME . "` (
     147            CREATE TABLE IF NOT EXISTS `" . BotUser::TABLE_NAME . "` (
    148148                    `provider_id` INT(10) NOT NULL,
    149149                    `provider_user_id` VARCHAR(256) NOT NULL COLLATE 'utf8mb4_unicode_ci',
     
    171171    public function pluginDeactivation()
    172172    {
    173         Config::delete(Config::TELEGRAM_API_TOKEN);
    174         Config::delete(Config::WELCOME_MESSAGE);
    175         Config::delete(Config::UNKNOWN_MESSAGE);
    176 
    177         // CleanUp DB
    178         DB::query('DROP TABLE IF EXISTS `' . BotUser::TABLE_NAME . '`;')
    179             ->execute();
     173//        Config::delete(Config::TELEGRAM_API_TOKEN);
     174//        Config::delete(Config::WELCOME_MESSAGE);
     175//        Config::delete(Config::UNKNOWN_MESSAGE);
     176//
     177//        // CleanUp DB
     178//        DB::query('DROP TABLE IF EXISTS `' . BotUser::TABLE_NAME . '`;')
     179//            ->execute();
    180180    }
    181181
  • bots-master/trunk/views/admin/parts/header.php

    r2709170 r2790885  
    5959
    6060</div>
     61
     62<!-- Frill Widget (https://frill.co) -->
     63<script>
     64    window.Frill_Config = window.Frill_Config || [];
     65    window.Frill_Config.push({ key: 'd2b4e441-41f9-4a6a-9edb-2d5005d21863' });
     66</script>
     67<script async src="https://widget.frill.co/v2/widget.js"></script>
     68<!-- End Frill Widget -->
Note: See TracChangeset for help on using the changeset viewer.