Skip to content

Instantly share code, notes, and snippets.

View williamfortunademoraes's full-sized avatar
🏠
Working from home

William Fortuna williamfortunademoraes

🏠
Working from home
View GitHub Profile
@williamfortunademoraes
williamfortunademoraes / [MixItUp] Using Callbacks & Events.markdown
Last active November 4, 2015 03:32
[MixItUp] Using Callbacks & Events
@williamfortunademoraes
williamfortunademoraes / functions.php
Created August 10, 2016 19:57 — forked from claudiosanches/functions.php
WooCommerce - Variable product with custom from price label
function custom_variable_price_html( $price, $product ) {
$price = '';
if ( ! $product->min_variation_price || $product->min_variation_price !== $product->max_variation_price ) {
$price .= '<span class="from">' . __( 'A partir de' ) . ' </span>';
}
$price .= woocommerce_price( $product->get_price() );
return $price;