Użytkownicy WP
sprawdzanie pozwoleń dla różnych użytkowników:
w kodzie:
<?php if(current_user_can('manage_options')): ?> <p>jestes adminem</p> <?php else : ?> <p>nie jestes adminem</p> <?php endif; ?>
—
sprawdzanie pozwoleń dla różnych użytkowników:
w kodzie:
<?php if(current_user_can('manage_options')): ?> <p>jestes adminem</p> <?php else : ?> <p>nie jestes adminem</p> <?php endif; ?>
—