• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Get current thread in page_container_head hook

I would like to get the current thread or at least the thread_id in the page_container_head hook. Anyone knows how to do that?

The purpose is to be able to do something like this:
if ($hookName==='page_container_head') {
$contents.= "ThreadId: ".$thread['thread_id'];