Can anyone help me with the topic mentioned above? I don't want Subscriber Roles to use my shoutbox and it seems that wordspew doesn't have this kind of feature.
Somebody please?!
Thanks a lot!
Can anyone help me with the topic mentioned above? I don't want Subscriber Roles to use my shoutbox and it seems that wordspew doesn't have this kind of feature.
Somebody please?!
Thanks a lot!
if( $current_user->id ) {
foreach($wp_roles->role_names as $role => $Role) {
if (array_key_exists($role, $current_user->caps))
break;
}
}
if ($role == "administrator") //or whoever you want to access wordspew
{
if (function_exists('jal_get_shoutbox')) { jal_get_shoutbox(); }
}
put that where you want to display your wordspew
This topic has been closed to new replies.