Skip to content Skip to main menu
User Role Editor
Menu
  • Home
  • Prices
  • Download
  • Testimonials
  • Forums
  • Blog
  • ChangeLog
  • Documentation
  • Login
Home › Reply › Reply To: Defining Posts View Access in php

Change WordPress user roles and capabilities › Forums › How to or FAQ › Defining Posts View Access in php › Reply To: Defining Posts View Access in php

11/01/2021 at 12:34 #7254
zunk
Participant

Just to be sure I’ve replaced the function my_user_role() by a static string of the role ID, and this is the same: it works in the 1rst case, but in the second case the access is phohibited.
So it seems that this hook is overwrite in my case by the post level restriction.

Recent Topics

  • Not visible in Plugins, User Role Editor not showing in Users menu
  • User Profile Fields
  • Limit role promotion, but maintain visibility of other roles.
  • Adding capabilies are not saved on user group
  • Gravity Forms – How to enable settings for Mailchimp etc.
  • Restrict single post editing by post attribute?
  • Add a role to users on registration
  • Ajax failure trying to access URL Parameters White List
  • How to show admin bar items to specific role
  • Errors when my users save a menu

Recent Replies

  • Vladimir on User Profile Fields 9 hours, 46 minutes ago
  • Vladimir on Not visible in Plugins, User Role Editor not showing in Users menu 1 day, 11 hours ago
  • jaycanuck on User Profile Fields 2 days, 18 hours ago
  • ElizabethM on Not visible in Plugins, User Role Editor not showing in Users menu 2 days, 20 hours ago
  • ElizabethM on Not visible in Plugins, User Role Editor not showing in Users menu 2 days, 20 hours ago
  • Vladimir on Not visible in Plugins, User Role Editor not showing in Users menu 2 days, 20 hours ago
  • ElizabethM on Not visible in Plugins, User Role Editor not showing in Users menu 2 days, 21 hours ago
  • Vladimir on Not visible in Plugins, User Role Editor not showing in Users menu 2 days, 22 hours ago
  • ElizabethM on Not visible in Plugins, User Role Editor not showing in Users menu 3 days, 1 hour ago
  • Vladimir on User Profile Fields 3 days, 1 hour ago
  • Contact Us
  • Privacy Policy
  • Terms of use (EULA)
© 2010 - 2023 Artellect Limited. Units A-C, 25/F., Seabright Plaza, No. 9-23 Shell Street, North Point, Hong Kong. Contact: hd@role-editor.com
Share