[resolved] Passing values between functions in a Plugin (3 posts)

  1. WayneSmallman
    Posted 7 years ago #

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

  2. whooami
    Posted 7 years ago #

    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



  3. WayneSmallman
    Posted 7 years ago #

    Hi and thanks!

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

    Much appreciated...

Topic Closed

This topic has been closed to new replies.

About this Topic