WPFront
  • Home
  • Plugins
    • Notification Bar Plugin
      • Plugin Ideas
      • Plugin Settings
      • Plugin FAQ
    • Scroll Top Plugin
      • Plugin Settings
      • Plugin FAQ
    • User Role Editor Plugin
      • Plugin Documentation
      • Plugin Settings
      • Plugin FAQ
    • Paddle Gateway Plugin
  • Go Pro
  • Support
    • Documentation
    • FAQ
  • Affiliates
  • Contact
  • Login
  • Cart
February 19, 2016 at 2:16 am #24777
Joseph Jordan
Participant

I may be close to a solution…

When wrapping the incorrectly displaying locked pages with:

   <?php if (current_user_can('edit_nav_menu_permissions')) : ?>
            <?php hkb_get_template_part('hkb-content-article'); ?>
            <?php the_excerpt(); ?>

<?php else :?>
Denied.
<?php endif; ?>

The menu shows “Denied” if the user cannot edit nav menu permissions. Obviously we don’t want to deny on this, but we want to deny on whether or not that user’s role is denied within the post.

Am I on the right track? If so, what should I be using instead of “Edit nav menu permissions”?

Thank you!

Log In
Lost Password

Search Topics

Documentation

FAQ
Roles List Add Role Edit Role Delete Role Restore Role Add or Remove Capability Assign/Migrate Users Posts/Pages Extended Permissions Custom Post Type Permissions Navigation Menu Permissions Widget Permissions Admin Menu Editor Media/Attachment File Permissions User Level Permissions Content Restriction Shortcodes Login Redirect Export Roles Import Roles Bulk Edit Settings Multisite Roles List Multisite Add New Role Multisite Edit Role Multisite Delete Role Multisite Restore Role Multisite Sync Roles Multisite Settings WordPress Capabilities Actions and Filters Installation Instructions