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

  • Can’t add an image using Divi
  • MonsterInsights access capacity for user role
  • Yoast Redirects Edit capability
  • Bulk-add user does not use user role of main site
  • Access only to edit Status within an Order?
  • Unable to grant access to Appearance > Customize
  • Additive roles
  • downgrade
  • Role editor widget has vanished from pages in admin
  • Issue with Image Insertion in Posts – User Role Editor Pro

Recent Replies

  • Vladimir on Can’t add an image using Divi 1 day, 6 hours ago
  • [email protected] on Can’t add an image using Divi 1 day, 6 hours ago
  • Vladimir on Can’t add an image using Divi 1 day, 6 hours ago
  • [email protected] on Can’t add an image using Divi 1 day, 7 hours ago
  • [email protected] on Can’t add an image using Divi 1 day, 7 hours ago
  • Vladimir on Can’t add an image using Divi 1 day, 7 hours ago
  • [email protected] on Can’t add an image using Divi 1 day, 17 hours ago
  • [email protected] on Can’t add an image using Divi 2 days, 14 hours ago
  • [email protected] on Can’t add an image using Divi 2 days, 16 hours ago
  • Vladimir on Can’t add an image using Divi 3 days, 6 hours ago
  • Contact Us
  • Privacy Policy
  • Terms of use (EULA)
© 2010 - 2025 Artellect Limited. Units A-C, 25/F., Seabright Plaza, No. 9-23 Shell Street, North Point, Hong Kong. Contact: hd@role-editor.com
Share