Użytkownicy WP

sprawdzanie pozwoleń dla różnych użytkowników:

Możliwości – tabela roli

 

w kodzie:

 <?php if(current_user_can('manage_options')): ?>
 <p>jestes adminem</p>
 <?php else : ?>
 <p>nie jestes adminem</p>
 <?php endif; ?>