Skip to main content
9 of 11
added 49 characters in body
Dealazer
  • 57
  • 1
  • 2

The correct answers to the above solution-question is by else programming basic:

if( current_user_can('administrator')) { 

<!-- only administrator will see this message -->

        }
else { 
        if( current_user_can('editor')) {

<!-- logic thinking tells here but it is not here -->

} else {

<!-- only editor but no administrator will see this message -->

?>
<style type="text/css">#perhapsDIVremovalidentifier{
display:none;
</style>
}
<?php
}}

Brief: The administrator is found, but if we push editor the administrator is as well found. So we just let the administrator pass through and identify the editor only.

Dealazer
  • 57
  • 1
  • 2