Hi,
I’m trying to include a css file in app/woocommerce.php
I’ve added the css file to config.json in resources and created the file which has my css. Im trying to include it in a function like so:
/**
* @snippet Add CSS to WooCommerce Emails
* @since 1.1
*/
add_action( 'woocommerce_email_header', function() {
?><style>
<?php include asset_path('styles/emails.css'); ?>
</style><?php
});
but this doesn’t work. However, just writing the css into the function does work. What am I doing wrong?