[insert_php]
if (is_user_logged_in()) {
define(‘PLUGIN_DIR’, plugin_dir_path(__FILE__));
if(current_user_can(‘create_users’)) {
include_once(PLUGIN_DIR.’/pages/admin/dashboard.php’);
}
else {
include_once(PLUGIN_DIR.’/pages/applicant/dashboard.php’);
}
}
else {
echo “

Please login to view your dashboard

“;
}
[/insert_php]