woocommerce_format_sale_price

woocommerce_format_sale_price

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_format_sale_price') is found 1 times:

  • /includes/wc-formatting-functions.php line 1322
    1318
    1319
    1320
    1321
    1322
    1323
    1324
    1325
    1326
    1327
    1328
        // translators: %s is a product's current (sale) price.
        $price .= esc_html( sprintf( __( 'Current price is: %s.', 'woocommerce' ), wp_strip_all_tags( $formatted_sale_price ) ) );
        $price .= '</span>';
     
        return apply_filters( 'woocommerce_format_sale_price', $price, $regular_price, $sale_price );
    }
     
    /**
     * Format a price range for display.
     *
     * @param  string $from Price from.