Adding WooCommerce PHP functions