PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.5.6
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.5.6
8.7.7 8.7.6 8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 8.5.6 8.5.5 8.5.4 8.5.3 8.5.2 All 533 releases
chatbot / includes / openai / plugin-upgrader / config.php

config.php in WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services 8.5.6, at includes/openai/plugin-upgrader/config.php

115 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH')) exit; // Exit if accessed directly
3 define('openaiaddon_LICENSING_PLUGIN_SLUG', 'chatbot-openai-addon/qcld-bot-openai.php');
4 define('openaiaddon_LICENSING_PLUGIN_NAME', 'chatbot-openai-addon');
5 define('openaiaddon_LICENSING_DIR', plugin_dir_path(__DIR__));
6 define('openaiaddon_LICENSING_URL', plugin_dir_url( __FILE__ ));
7 define('openaiaddon_LICENSING_REMOTE_PATH', 'https://www.ultrawebmedia.com/li/plugins/chatbot-openai-addon/update.php');
8 define('openaiaddon_LICENSING_PRODUCT_DEV_URL', 'https://quantumcloud.com/products/');
9
10 //start new-update-for-codecanyon
11 define('openaiaddon_ENVATO_PLUGIN_ID', -1);
12 //end new-update-for-codecanyon
13
14 function get_openaiaddon_licensing_plugin_data(){
15 include_once(ABSPATH.'wp-admin/includes/plugin.php');
16 return get_plugin_data(openaiaddon_LICENSING_DIR.'/qcld-bot-openai.php', false);
17 }
18
19 //License Options
20 function get_openaiaddon_licensing_key(){
21 return get_option('qcld_openaiaddon_enter_license_key');
22 }
23
24 function get_openaiaddon_envato_key(){
25 return get_option('qcld_openaiaddon_enter_envato_key');
26 }
27
28 function get_openaiaddon_licensing_buy_from(){
29 return get_option('qcld_openaiaddon_buy_from_where');
30 }
31
32
33 //Update Transients
34 function get_openaiaddon_update_transient(){
35 return get_transient('qcld_update_openaiaddon_');
36 }
37
38 function set_openaiaddon_update_transient($plugin_object){
39 return set_transient( 'qcld_update_openaiaddon_', serialize($plugin_object), 1 * DAY_IN_SECONDS );
40 }
41
42 function delete_openaiaddon_update_transient(){
43 return delete_transient( 'qcld_update_openaiaddon_' );
44 }
45
46
47 //Renewal Transients
48 function get_openaiaddon_renew_transient(){
49 return get_transient('qcld_renew_openaiaddon__subscription');
50 }
51
52 function set_openaiaddon_renew_transient($plugin_object){
53 return set_transient( 'qcld_renew_openaiaddon__subscription', serialize($plugin_object), 1 * DAY_IN_SECONDS );
54 }
55
56 function delete_openaiaddon_renew_transient(){
57 return delete_transient( 'qcld_renew_openaiaddon__subscription' );
58 }
59
60
61 //Invalid License Options
62 function get_openaiaddon_invalid_license(){
63 return get_option('openaiaddon_invalid_license');
64 }
65
66 function set_openaiaddon_invalid_license(){
67 return update_option('openaiaddon_invalid_license', 1);
68 }
69
70 function delete_openaiaddon_invalid_license(){
71 return delete_option('openaiaddon_invalid_license');
72 }
73 function openaiaddon__get_licensing_url(){
74 return admin_url('admin.php?page=openai-panel_help');
75 }
76
77 //Valid License
78 function get_openaiaddon_valid_license(){
79 return get_option('openaiaddon_valid_license');
80 }
81 function set_openaiaddon_valid_license(){
82 return update_option('openaiaddon_valid_license', 1);
83 }
84 function delete_openaiaddon_valid_license(){
85 return delete_option('openaiaddon_valid_license');
86 }
87
88 //staging or live
89 function get_openaiaddon_site_type(){
90 return get_option('qcld_openaiaddon_site_type');
91 }
92
93
94
95 //start new-update-for-codecanyon
96 function get_openaiaddon_license_purchase_code(){
97 return get_option('qcld_openaiaddon_enter_license_or_purchase_key');
98 }
99
100 function qcld_get_openaiaddon_enter_license_notice_dismiss_transient(){
101 return get_transient('qcld_get_openaiaddon_enter_license_notice_dismiss_transient');
102 }
103
104 function set_openaiaddon_enter_license_notice_dismiss_transient(){
105 return set_transient('qcld_get_openaiaddon_enter_license_notice_dismiss_transient', 1, DAY_IN_SECONDS);
106 }
107
108 function get_openaiaddon_invalid_license_notice_dismiss_transient(){
109 return get_transient('get_openaiaddon_invalid_license_notice_dismiss_transient');
110 }
111
112 function set_openaiaddon_invalid_license_notice_dismiss_transient(){
113 return set_transient('get_openaiaddon_invalid_license_notice_dismiss_transient', 1, DAY_IN_SECONDS);
114 }
115 //end new-update-for-codecanyon