1. 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

Discussion in 'XenForo Development Discussions' started by ND Daniel, Jun 2, 2014.

  1. ND Daniel

    ND Daniel New Member

    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'];

Share This Page