Is it ok to use a function to output the text domain name in a wordpress theme
No, this is not okay. NO NO NO. Here’s my favourite Otto quote: Inside all translation functions, no PHP variables are allowed in the strings, for any reason, ever. Otto explains this in more detail, but the simple way to say it is that translation calls are parsed, not executed . So your variable (let … Read more