Browse
For agents
About
SupportCandy – AI Customer Support Ticket System & Live Chatbot Agent
/
2.3.1
SupportCandy – AI Customer Support Ticket System & Live Chatbot Agent
v2.3.1
Switch version
3.5.4
3.5.3
3.5.2
3.5.1
3.4.9
3.5.0
3.4.8
3.4.7
trunk
2.3.1
3.3.6
3.3.7
3.3.8
3.3.9
3.4.0
3.4.1
3.4.2
3.4.3
3.4.4
3.4.5
3.4.6
Overview
Code
supportcandy
/
includes
/
rest_api
/
v1
/
get_agents.php
get_agents.php
in SupportCandy – AI Customer Support Ticket System & Live Chatbot Agent 2.3.1, at includes/rest_api/v1/get_agents.php
29 lines
503 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
<
?
php
2
if
(
!
defined
(
'
ABSPATH
'
)
)
{
3
exit
;
//
Exit if accessed directly
4
}
5
6
global
$
current_user
;
7
8
$
response
=
array
(
)
;
9
10
$
agents
=
get_terms
(
[
11
'
taxonomy
'
=>
'
wpsc_agents
'
,
12
'
hide_empty
'
=>
false
,
13
'
meta_query
'
=>
array
(
14
array
(
15
'
key
'
=>
'
agentgroup
'
,
16
'
value
'
=>
'
0
'
,
17
'
compare
'
=>
'
=
'
18
)
19
)
20
]
)
;
21
22
$
agent_roles
=
get_option
(
'
wpsc_agent_role
'
)
;
23
24
foreach
(
$
agents
as
$
agent
)
:
25
26
$
response
[
]
=
SELF
::
get_agent_info
(
$
agent
->
term_id
,
$
agent_roles
)
;
27
28
endforeach
;
29