Render Templates content
Last updated
Was this helpful?
Last updated
Was this helpful?
Add the following code to ./template/new-email-1.php
to enable developers to retrieve template content effectively.
The args
variable is an input parameter for the get_content_html
function within this file. It contains various email details, including the order, email heading, additional content, sent to admin, plain text, and more...
Upon receiving the specified variable, this code checks whether the template exists. If it does, the code retrieves the content based on args
passed in