Posted on

Using dynamic version parameter in wp_enqueue_style to prevent caching assets

As browser caching mechanisms are becoming more and more aggressive, it could be very handy – when in development stage – to dynamically purge assets cache using the “version” argument when enqueuing scripts and styles in WordPress.
Continue reading Using dynamic version parameter in wp_enqueue_style to prevent caching assets

Posted on

Adding email attachments in WooCommerce

WooCommerce is a very great platform for developers since the source code provides hooks almost everywhere. It means default behaviors and datas can be easily altered by your own code. But for regular users / shop owners, that means “hidden” features you can’t access without a plugin.

For instance, i often receive requests from people who would like to use one of my plugin in order to add attachments to their transactional emails in WooCommerce. Since the plugin is not designed primarily for that here is a little snippet you can use to achieve that. Continue reading Adding email attachments in WooCommerce