This commit is contained in:
Hoang Huu
2020-06-22 13:30:12 +07:00
parent 4fe7aecb30
commit ab00de6716
5 changed files with 18 additions and 4 deletions

View File

@@ -660,6 +660,7 @@ function opalestate_get_currencies() {
'CHF' => esc_html__( 'Swiss franc', 'opalestate-pro' ),
'CLP' => esc_html__( 'Chilean peso', 'opalestate-pro' ),
'CNY' => esc_html__( 'Chinese yuan', 'opalestate-pro' ),
'UF' => esc_html__( 'Chilean Foment Unity', 'opalestate-pro' ),
'COP' => esc_html__( 'Colombian peso', 'opalestate-pro' ),
'CRC' => esc_html__( 'Costa Rican colón', 'opalestate-pro' ),
'CUC' => esc_html__( 'Cuban convertible peso', 'opalestate-pro' ),
@@ -884,6 +885,7 @@ function opalestate_currency_symbol( $currency = '' ) {
'CHF' => 'CHF',
'CLP' => '$',
'CNY' => '¥',
'UF' => 'UF',
'COP' => '$',
'CRC' => '₡',
'CUC' => '$',

View File

@@ -177,6 +177,10 @@ class OpalEstate_User {
if ( in_array( 'opalestate_agent', $roles ) || in_array( 'opalestate_agency', $roles ) ) {
return false;
}
if ( in_array( 'subscriber', $roles ) && opalestate_is_user_management_page() ) {
return false;
}
}
return $show_admin_bar;