Return Data Not HTML

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.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *