@kubitomakita thanks for replying so quick.
I cannot find any capability which is created by the plugin? What is its name?
I use “Role Editor” to manage capabilities and roles.
It is quite easy, just create a capability, for. i.e “notification_view”, use the following code
if( !(current_user_can('manage_options') || current_user_can('notification_view'))){
wp_die('Access Denied');
}
//rest of the code for attaching the Notification to the menu"
When this done then I can use “notification_view” capability to check whether or not a user /role should be able to see the menu for Notications ??
EDIT: If I found the capability name I could manage to solve it myself.. but I cannot find any capability for the plugin Notifications :/
-
This reply was modified 7 years, 8 months ago by zilveer.
-
This reply was modified 7 years, 8 months ago by zilveer. Reason: edit code
-
This reply was modified 7 years, 8 months ago by zilveer.