My colleague Tom has some excellent advice. He suggests that in applications, such as WordPress plugins or themes, you should always return data rather than returning strings of concatenated HTML. Instead the data should be passed to a separate function that will then echo the HTML. Take a look.
Leave a Reply Cancel reply