MyBB Community Forums

Full Version: How to Get PID on thread delete?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
on thread delete, i need to get pid of that thread to continue development of my plugin function.. i want to know that there is any pre define function to get pid via tid?
i am getting only tid on thread delete hook, i am using get_thread() to fetch thread information but there is no tid in this Sad
all post id that are contained in this thread or only from the first post witch is the thread?
ok i got it..
$thread=get_thread($tid);
$pid = $thread['firstpost']