Initial Commit N° : 002 - V.4.3.3
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+4269
-1
File diff suppressed because one or more lines are too long
@@ -174,3 +174,20 @@ if (!function_exists('elessi_load_textdomain')) :
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Change a currency symbol
|
||||||
|
*/
|
||||||
|
|
||||||
|
add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2);
|
||||||
|
|
||||||
|
function change_existing_currency_symbol($currency_symbol, $currency) {
|
||||||
|
switch ($currency) {
|
||||||
|
case 'DZD':
|
||||||
|
$currency_symbol = 'DA';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return $currency_symbol;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user