I have a global variable in wordpress
global $getmembership
I would like to destroy after use this variable on the page.
CodePudding user response:
you can unset any global variable like this
unset ( $GLOBALS[$getmembership] );
I have a global variable in wordpress
global $getmembership
I would like to destroy after use this variable on the page.
CodePudding user response:
you can unset any global variable like this
unset ( $GLOBALS[$getmembership] );