You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You don't have any capability checks for your admin notices, which means any user that can access your post type can see your messages. You should limit these to only those users that have the ability to act upon those messages, or you should create different messages for those users that cannot act upon the messages. I would consider using current_user_can( 'manage_options' ) seeing how all of your submenu pages require that level to access them.
The text was updated successfully, but these errors were encountered:
You don't have any capability checks for your admin notices, which means any user that can access your post type can see your messages. You should limit these to only those users that have the ability to act upon those messages, or you should create different messages for those users that cannot act upon the messages. I would consider using
current_user_can( 'manage_options' )
seeing how all of your submenu pages require that level to access them.The text was updated successfully, but these errors were encountered: