PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 4.7.7
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v4.7.7
8.7.8 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 All 534 releases
← All changes | includes/openai/OpenAi_WPBot_Menu.php +50 -51 8.5.44.7.7 View file →
@@ -1,51 +1,50 @@
1 -<?php
2 -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3 -
4 -class OpenAi_WPBot_Menus
5 -{
6 - function __construct(){
7 - //add_action('admin_menu',[$this,'chatbot_menu']);
8 - }
9 - public function chatbot_menu()
10 - {
11 - global $qcld_custom_hook, $submenu;
12 - // add_menu_page( openai_menu_text(), 'Bot - OpenAI', 'manage_options','openai-panel_dashboard', [$this, 'qcld_wb_chatbot_admin_page'],'');
13 - // add_submenu_page( 'openai-panel_dashboard', 'File Upload', 'File Upload', 'manage_options','openai-panel_file', [$this, 'qcld_wb_chatbot_openai_file'] );
14 - // add_submenu_page( 'openai-panel_dashboard', 'Help', 'Help', 'manage_options','openai-panel_help', [$this, 'qcld_wb_chatbot_admin_page_help'] );
15 - // echo '<pre>'; print_r( $submenu['openai-panel_dashboard'] ); echo '</pre>'; exit();
16 - }
17 - public function qcld_wb_chatbot_admin_page()
18 - {
19 - // global $woocommerce;
20 - $action = 'admin.php?page=openai-panel_dashboard';
21 - require_once( QCLD_openai_addon_PLUGIN_DIR_PATH . "includes/admin/admin_ui2.php");
22 - }
23 - public function qcld_wb_chatbot_openai_file(){
24 - $action = 'admin.php?page=openai-panel_file';
25 - require_once( QCLD_openai_addon_PLUGIN_DIR_PATH . "includes/admin/files.php");
26 - }
27 -
28 - public function qcld_wb_chatbot_admin_page_help()
29 - {
30 -
31 - $action = 'admin.php?page=openai-panel_help';
32 - require_once( QCLD_openai_addon_PLUGIN_DIR_PATH . "includes/admin/help.php" );
33 - }
34 - public function screen_option(){
35 - global $qcld_custom_hook;
36 - $screen = get_current_screen();
37 -
38 - $option = 'per_page';
39 - $args = [
40 - 'label' => 'Response',
41 - 'default' => 25,
42 - 'option' => 'str_responses_per_page'
43 - ];
44 - add_screen_option( $option, $args );
45 - qcld_wpbot()->set_response_list();
46 - }
47 -}
48 -
49 -
50 -//fire off the plugin
51 - new OpenAi_WPBot_Menus();
1 +<?php
2 +
3 +class OpenAi_WPBot_Menus
4 +{
5 + function __construct(){
6 + //add_action('admin_menu',[$this,'chatbot_menu']);
7 + }
8 + public function chatbot_menu()
9 + {
10 + global $custom_hook, $submenu;
11 + // add_menu_page( openai_menu_text(), 'Bot - OpenAI', 'manage_options','openai-panel_dashboard', [$this, 'qcld_wb_chatbot_admin_page'],'');
12 + // add_submenu_page( 'openai-panel_dashboard', 'File Upload', 'File Upload', 'manage_options','openai-panel_file', [$this, 'qcld_wb_chatbot_openai_file'] );
13 + // add_submenu_page( 'openai-panel_dashboard', 'Help', 'Help', 'manage_options','openai-panel_help', [$this, 'qcld_wb_chatbot_admin_page_help'] );
14 + // echo '<pre>'; print_r( $submenu['openai-panel_dashboard'] ); echo '</pre>'; exit();
15 + }
16 + public function qcld_wb_chatbot_admin_page()
17 + {
18 + // global $woocommerce;
19 + $action = 'admin.php?page=openai-panel_dashboard';
20 + require_once( QCLD_openai_addon_PLUGIN_DIR_PATH . "includes/admin/admin_ui2.php");
21 + }
22 + public function qcld_wb_chatbot_openai_file(){
23 + $action = 'admin.php?page=openai-panel_file';
24 + require_once( QCLD_openai_addon_PLUGIN_DIR_PATH . "includes/admin/files.php");
25 + }
26 +
27 + public function qcld_wb_chatbot_admin_page_help()
28 + {
29 +
30 + $action = 'admin.php?page=openai-panel_help';
31 + require_once( QCLD_openai_addon_PLUGIN_DIR_PATH . "includes/admin/help.php" );
32 + }
33 + // public function screen_option(){
34 + // global $custom_hook;
35 + // $screen = get_current_screen();
36 +
37 + // $option = 'per_page';
38 + // $args = [
39 + // 'label' => 'Response',
40 + // 'default' => 25,
41 + // 'option' => 'str_responses_per_page'
42 + // ];
43 + // add_screen_option( $option, $args );
44 + // qcld_wpbot()->set_response_list();
45 + // }
46 +}
47 +
48 +
49 +//fire off the plugin
50 + new OpenAi_WPBot_Menus();