display custom field according to user role
-
Hello
i need to show product custom field only for user role f.e. Administrator
i tried to add this condition but it not works. Page does not load
` <?php if( current_user_can(‘administrator’) { ?>
<p>text</p>
<?php } ?>`could you please help me with correct contition for this example?
Thank you very much
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘display custom field according to user role’ is closed to new replies.