Define global variable in theme file and call that variable in plugin file
The most important thing about your problem is the loading priority. By default, Plugins are loaded before the theme. So, when you define a global variable in the functions.php it is not available in plugins code like your example. global $ww_new; echo $ww_new; But you can use the defined global variable if you make sure … Read more