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

Style id in template_post_render event handler

Discussion in 'XenForo Development Discussions' started by Arty, Aug 16, 2016.

  1. Arty

    Arty Well-Known Member

    Is it possible to get current style id in template_post_render event handler?
  2. Arty

    Arty Well-Known Member

    Figured it out.
    $params = $template->getParams();
    if (isset($params['_styleId'])) {
       // do style specific stuff. current style id = $params['_styleId']

Share This Page