Answer the question
In order to leave comments, you need to log in
How to correctly write the condition in WordPress - display the "reply" button only for the admin ..?
Tell me how to correctly prescribe the condition in WordPress - display the "reply" button only for the admin ..? This is for comments
Answer the question
In order to leave comments, you need to log in
In template:
<?php if ( is_user_logged_in() && current_user_can( 'administrator' ) ) : ?>
<!-- код кнопки -->
<?php endif; ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question