WGMember Add Post

[insert_php]
$roles_list = array(‘editor’,’contributor’,’author’,’administrator’);
$wg_user=custom_get_user_role();
if (in_array($wg_user, $roles_list)) {
echo “This page is restricted. Please Log in to view this page.”;
}else{
echo “Access denied! Please return back.”;
}
[/insert_php]