#is editor
How to check if user is administrator or editor in WordPress
WordPress has a build in function to check if the current logged-in user is whether administrator, editor or any other capability you have. I am talking about the current_user_can() function [...]