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

Discussion in 'XenForo Questions and Support' started by rhodes, Sep 12, 2016.

  1. rhodes

    rhodes 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?
  2. Mike

    Mike XenForo Developer Staff Member

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

Share This Page