PluginProbe
Awesome Support – WordPress HelpDesk & Support Plugin / trunk
Awesome Support – WordPress HelpDesk & Support Plugin vtrunk
6.4.0 trunk 3.0.0 3.0.1 3.1.0 3.1.1 3.1.10 3.1.11 3.1.12 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 All 95 releases
awesome-support / includes / admin / functions-agent-chat.php

functions-agent-chat.php in Awesome Support – WordPress HelpDesk & Support Plugin trunk, at includes/admin/functions-agent-chat.php

32 lines 826 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Awesome Support/Admin/Functions/Agent-Chat
4 * @author AwesomeSupport <contact@getawesomesupport.com>
5 * @license GPL-2.0+
6 * @link https://getawesomesupport.com
7 * @copyright 2015-2018 AwesomeSupport
8 */
9
10 // If this file is called directly, abort.
11 if ( ! defined( 'WPINC' ) ) {
12 die;
13 }
14
15 /**
16 * Register teamviewer integration script
17 *
18 * @since 4.4.0
19 *
20 * @return void
21 */
22 add_action( 'admin_enqueue_scripts', 'wpas_enqueue_team_viewer_scripts', 10 );
23 function wpas_enqueue_team_viewer_scripts(){
24
25 if ( true === boolval( wpas_get_option( 'enable_teamviewer_chat', false ) && true == wpas_is_plugin_page() ) ) {
26
27 wp_register_script( 'wpas-teamviewer-chat', 'https://integratedchat.teamviewer.com/widget', '', '4.4.0', true );
28 wp_enqueue_script( 'wpas-teamviewer-chat' );
29
30 }
31
32 }