'manage_options' role not working as expected
-
hi
I’m using a condition like thus:<?php public function fi_menu() { if( !current_user_can('manage_opitons') ){ wp_die(__('You do not have sufficient permissions to access this page.')); } echo "<div class='wrap'>"; echo "<p>Theme settings page here</p>"; echo "</div>"; } ?>
Which always returns ‘You do not have sufficient permissions to access this page’. When I comment-out the conditional, my page loads fine. I’m logged in as the super user admin so what is the problem, I *should* have ‘manage_options’ capabilities?
Cookie
- The topic ‘'manage_options' role not working as expected’ is closed to new replies.