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

  • New custom role capabilities not saved
  • How to use the paid version of plugin?
  • view_dashboard is no longer available?
  • User Role Editor Pro Not Restricting Forms Based on User Roles – Need Help
  • Use Automation to import a URE Pro Export File
  • Global Role Updates Not Syncing to Subsites in Multisite
  • Issue with Page View Access for Non-Logged In Users
  • Can’t add an image using Divi
  • MonsterInsights access capacity for user role
  • Yoast Redirects Edit capability

Recent Replies

  • [email protected] on How to make a plugin visible for non admins 3 hours, 22 minutes ago
  • Andy Burns on Multisite – Capabilities reset when restricting access to a plugin 20 hours, 30 minutes ago
  • Vladimir on New custom role capabilities not saved 1 week ago
  • Andy Burns on New custom role capabilities not saved 2 weeks ago
  • Andy Burns on New custom role capabilities not saved 2 weeks ago
  • Andy Burns on Multisite – Capabilities reset when restricting access to a plugin 2 weeks ago
  • Vladimir on view_dashboard is no longer available? 1 month ago
  • [email protected] on Issue with Page View Access for Non-Logged In Users 3 months ago
  • [email protected] on Issue with Page View Access for Non-Logged In Users 3 months, 2 weeks ago
  • Vladimir on Issue with Page View Access for Non-Logged In Users 3 months, 2 weeks ago
  • Contact Us
  • Privacy Policy
  • Terms of use (EULA)
© 2010 - 2026 Role-editor.com Contact: hd@role-editor.com
Share