[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/app-details.php’);
}
else {
include_once(PLUGIN_DIR.’pages/applicant/app-details.php’);
}
}
else {
echo “Please login to view this application”;
}
[/insert_php]