Fatal error and use of undefined constant in child theme unless I redefine it
The important thing that needs to be understood here is that child themes are loaded before the parent parent theme. So if you try to use a function, variable, or constant that’s defined in the parent theme in your child theme then it will result in errors, unless you use them inside a hooked function … Read more