Hello, I would like to know if I should add an unique theme prefix to all php variables I create as well as for functions?
Thanks for your advice!
Yes, its a must and good practice. I prefix all mine with ct_
Doesn’t function scope isolate our variables away from other parts of WP like plugins?
Of course you don’t need to prefix your variables, only functions, classes, global variables and constants.