get_woocommerce_price_format filter Closes #2322

This commit is contained in:
Mike Jolley 2013-02-01 14:44:23 +00:00
parent f3b0530c05
commit 569b31b973
1 changed files with 7 additions and 4 deletions

View File

@ -692,6 +692,7 @@ function get_woocommerce_currency_symbol( $currency = '' ) {
case 'RON' : $currency_symbol = 'lei'; break;
default : $currency_symbol = ''; break;
endswitch;
return apply_filters( 'woocommerce_currency_symbol', $currency_symbol, $currency );
}
@ -736,14 +737,16 @@ function get_woocommerce_price_format() {
switch ( $currency_pos ) {
case 'left' :
return '%1$s%2$s';
$format = '%1$s%2$s';
case 'right' :
return '%2$s%1$s';
$format = '%2$s%1$s';
case 'left_space' :
return '%1$s %2$s';
$format = '%1$s %2$s';
case 'right_space' :
return '%2$s %1$s';
$format = '%2$s %1$s';
}
return apply_filters( 'woocommerce_price_format', $format, $currency_pos );
}