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.
Return Data Not HTML
by
Tags:
Leave a Reply