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
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
Discontinued product and SEO in WooCommerce
Fatal error: Uncaught Error: Call to a member function id() on array in /homepages/36/d142585675/htdocs/mbcreation.com/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php:36 Stack trace: #0 /homepages/36/d142585675/htdocs/mbcreation.com/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(538): CrayonFormatter::format_code('', Array, Object(CrayonHighlighter)) #1 [internal function]: CrayonFormatter::delim_to_internal(Array) #2 /homepages/36/d142585675/htdocs/mbcreation.com/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(516): preg_replace_callback('#()#msi', 'CrayonFormatter...', 'function mbcrea...') #3 /homepages/36/d142585675/htdocs/mbcreation.com/www/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(166): CrayonFormatter::format_mixed_code('function mbcrea...', Object(CrayonLang), Object(CrayonHighlighter)) #4 /homepages/36/d142585675/htdocs/mbcreation.com/www/wp-content/plugins/crayon-syntax-highlighter/crayon_highligh in /homepages/36/d142585675/htdocs/mbcreation.com/www/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 36