Skip to content

Instantly share code, notes, and snippets.

@rayflores
Created December 19, 2014 06:25
Show Gist options
  • Save rayflores/ac3d41ce6f624f37ce21 to your computer and use it in GitHub Desktop.
Save rayflores/ac3d41ce6f624f37ce21 to your computer and use it in GitHub Desktop.
add a stylesheet to xml output ;) xslt for xml
<?
/* 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