wpsc_the_product_price_display_old_price_class

Located in: product-template.php

Functions that call this hook: wpsc_the_product_price_display()

Arguments Accepted: $old_price_class, $product_id

Version Introduced: 3.8.9

Description: Filter the class for the “Old Price” span element.

Code in context:

[php firstline=”1988″ highlight=”1988″]

$old_price_class = apply_filters( ‘wpsc_the_product_price_display_old_price_class’, $old_price_class, $id );

$old_price_amount_class = apply_filters( ‘wpsc_the_product_price_display_old_price_amount_class’, $old_price_amount_class, $id );

$attributes = ‘class="’ . esc_attr( $old_price_class ) . ‘"’;

if ( ! $show_old_price )

$attributes .= ‘ style="display:none;"’;

$old_price_before = sprintf( $old_price_before, $attributes );

$old_price_amount_before = sprintf( $old_price_amount_before, esc_attr( $old_price_amount_class ), esc_attr( $old_price_amount_id ) );

[/php]