Home > Back-end >  How to destroy global variable WordPress
How to destroy global variable WordPress

Time:11-24

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] );
  • Related