How to add a WooCommerce product attribute to a global snippet