HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1014-azure #14~24.04.1-Ubuntu SMP Fri Oct 3 20:52:11 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/dreamsrent-wp/wp-content/themes/dreamsrent/header.php
<?php 
$current_user = wp_get_current_user();
$roles = (array) $current_user->roles;
if(is_page_template('template-dashboard-vendors.php')) {
 if (in_array('dreamsrent_vendor', $roles, true) || in_array('administrator', $roles, true)) {
    
    get_template_part('templates/header/header', 'provider');
} else {
    get_template_part('templates/header/header', 'normal');
}
} else {
    get_template_part('templates/header/header', 'normal');
 
}
 
 ?>