All muhaza's note in developing website. Front-end & uiux method. Real life implementation for webdesigner.
<?php if( current_user_can('editor') || current_user_can('administrator') ) {
// Stuff here for administrators or editors
} ?>