wpsc_the_product_price_display_you_save_amount_class

Located in: product-template.php

Functions that call this hook: wpsc_the_product_price_display()

Arguments Accepted: $you_save_amount_class, $product_id

Version Introduced: 3.8.9

Description: Filter the class for the “You Save” amount span element.

Code in context:

[php firstline=”2001″ highlight=”2002″]

$you_save_class = apply_filters( ‘wpsc_the_product_price_display_you_save_class’, $you_save_class, $id );

$you_save_amount_class = apply_filters( ‘wpsc_the_product_price_display_you_save_amount_class’, $you_save_amount_class, $id );

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

if ( ! $show_you_save )

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

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

$you_save_amount_before = sprintf( $you_save_amount_before, esc_attr( $you_save_amount_class ), esc_attr( $you_save_amount_id ) );[/php]