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_thread_history_id.php
get_thread_history_id.php
in SupportCandy – AI Customer Support Ticket System & Live Chatbot Agent 2.3.1, at includes/rest_api/v1/get_thread_history_id.php
13 lines
271 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
,
$
wpdb
;
7
8
$
history_id
=
$
wpdb
->
get_var
(
"
SELECT
max
(
ID)
from
{
$
wpdb
->
prefix
}
posts
WHERE
post_type
=
'
wpsc_ticket_thread
'
"
)
;
9
10
$
response
=
array
(
11
'
historyId
'
=>
$
history_id
12
)
;
13