• 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

rhodes

Active member
#1
Hello,

I have several custom media sites using a callback function like this
Code:
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?
 

Mike

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