woocommerce_format_price_range

woocommerce_format_price_range

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_format_price_range') is found 1 times:

  • /includes/wc-formatting-functions.php line 1335
     */
    function wc_format_price_range( $from, $to ) {
    	/* translators: 1: price from 2: price to */
    	$price = sprintf( _x( '%1$s – %2$s', 'Price range: from-to', 'woocommerce' ), is_numeric( $from ) ? wc_price( $from ) : $from, is_numeric( $to ) ? wc_price( $to ) : $to );
    	return apply_filters( 'woocommerce_format_price_range', $price, $from, $to );
    }
    
    /**
     * Format a weight for display.
     *
     * @since  3.0.0