Merge pull request #6068 from bryceadams/master
Added Lao Kip Currency & Before / After Downloads actions
This commit is contained in:
commit
72f9374902
|
@ -268,6 +268,7 @@ function get_woocommerce_currencies() {
|
|||
'NPR' => __( 'Nepali Rupee', 'woocommerce' ),
|
||||
'ILS' => __( 'Israeli Shekel', 'woocommerce' ),
|
||||
'JPY' => __( 'Japanese Yen', 'woocommerce' ),
|
||||
'KIP' => __( 'Lao Kip', 'woocommerce' ),
|
||||
'KRW' => __( 'South Korean Won', 'woocommerce' ),
|
||||
'MYR' => __( 'Malaysian Ringgits', 'woocommerce' ),
|
||||
'MXN' => __( 'Mexican Peso', 'woocommerce' ),
|
||||
|
@ -366,6 +367,7 @@ function get_woocommerce_currency_symbol( $currency = '' ) {
|
|||
case 'HRK' : $currency_symbol = 'Kn'; break;
|
||||
case 'EGP' : $currency_symbol = 'EGP'; break;
|
||||
case 'DOP' : $currency_symbol = 'RD$'; break;
|
||||
case 'KIP' : $currency_symbol = '₭'; break;
|
||||
default : $currency_symbol = ''; break;
|
||||
}
|
||||
|
||||
|
|
|
@ -15,6 +15,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
if ( $downloads = WC()->customer->get_downloadable_products() ) : ?>
|
||||
|
||||
<?php do_action( 'woocommerce_before_available_downloads' ); ?>
|
||||
|
||||
<h2><?php echo apply_filters( 'woocommerce_my_account_my_downloads_title', __( 'Available downloads', 'woocommerce' ) ); ?></h2>
|
||||
|
||||
<ul class="digital-downloads">
|
||||
|
@ -34,4 +36,6 @@ if ( $downloads = WC()->customer->get_downloadable_products() ) : ?>
|
|||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<?php do_action( 'woocommerce_after_available_downloads' ); ?>
|
||||
|
||||
<?php endif; ?>
|
Loading…
Reference in New Issue