Tag 1.2.9

This commit is contained in:
Hoang Huu
2020-01-09 09:29:52 +07:00
parent bb42be1a8c
commit 5b835c9fa3
6 changed files with 33 additions and 21 deletions

View File

@@ -75,8 +75,7 @@ class Opalestate_Agent_Front {
$user_roles = $current_user->roles;
$user_role = array_shift( $user_roles );
if ( $user_role == 'opalestate_agent' ) {
if ( 'on' === opalestate_get_option( 'enable_dashboard_agent_profile', 'on' ) && $user_role == 'opalestate_agent' ) {
$menu['extra_profile'] = [
'icon' => 'fa fa-user',
'link' => "agent_profile",