Custom global variable not usable on second snippet
-
I have defined a global variable on a code snippet. I defined it at the start of the code and inside the function there defined.
I then coded a second snippet that has a different hook and action. Even though I define the custom global variable it does not have the value I put on the first piece of code.
So basically code snippet 1 is assigning a value to a global variable and code snippet 2 is reading the value. But when it tries to do so, the value si empty.
Any ideas as to what I am doing wrong or where I need to do something else for this to work?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Custom global variable not usable on second snippet’ is closed to new replies.