PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.7.4
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.7.4
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 / OpenAi_WPBot_Menu.php

OpenAi_WPBot_Menu.php in WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services 8.7.4, at includes/openai/OpenAi_WPBot_Menu.php

52 lines 1.9 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
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();
52