Support » Plugins » Passing values between functions in a Plugin

  • Resolved WayneSmallman


    Hi guys, here’s the problem:

    From the function call in: “single.php” I’m passing: “$_SERVER[‘HTTP_REFERER’]” into the Plugin.

    I’ve got this data in one function, but for the life of my I cannot make it global across other functions.

    I’m guessing WordPress has locked all of this stuff down and there’s some custom function name.

    Any ideas?

    Speak soon…

Viewing 2 replies - 1 through 2 (of 2 total)
  • whooami



    thats a global variable ( and its VERY specific ) .. if you use that in 123.php and you want to pass it to something else, like abc.php you will probably need to call it something else before you do so.

    Like so,

    $thisvariable = $_SERVER[‘HTTP_REFERER’];

    and then pass $thisvariable


    Hi and thanks!

    Though your advice wasn’t exactly the answer, you nudged me in the right direction, so thanks for that.

    Much appreciated…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Passing values between functions in a Plugin’ is closed to new replies.