Created
December 19, 2014 06:25
-
-
Save rayflores/ac3d41ce6f624f37ce21 to your computer and use it in GitHub Desktop.
add a stylesheet to xml output ;) xslt for xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| /* RAY FLORES ADD STYLESHEET */ | |
| function standalone() { | |
| $xml_standalone = 'yes' . '"?><?xml-stylesheet type="text/xsl" href="name-of-stylesheet.xslt"'; | |
| return $xml_standalone;//false; | |
| } | |
| add_filter( 'wc_customer_order_xml_export_suite_xml_standalone', 'standalone' ); | |
| /* output | |
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?><?xml-stylesheet type="text/xsl" href="name-of-stylesheet.xslt"?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment