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

XF 1.5 Additional data in media site callback


Active member

I have several custom media sites using a callback function like this
public static function myCallback($mediaKey, array $site)
This works fine. However, for one of the media sites I need additional data within the callback.
  • the forum ID where this media site is published
  • the thread title
Is there any variable or function I can use in my callback?


XenForo developer
Staff member
This data isn't available there. At best, you would need to implement something like that through JS.