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

  • get_sites function limit of 100 sites
  • Elementor Hello theme missing from menu
  • access to PublishPress Blocks, Block Usage for Editor role
  • Restrict media library to user’s own media files only
  • Conflict with Events Calendar
  • User Application Passwords Not Rendering for Non-Admins
  • Administrator menu access module is not working on a multisite
  • New custom role capabilities not saved
  • How to use the paid version of plugin?
  • view_dashboard is no longer available?

Recent Replies

  • Vladimir on get_sites function limit of 100 sites 6 days, 16 hours ago
  • Channel Digital on Elementor Hello theme missing from menu 1 week ago
  • Vladimir on Elementor Hello theme missing from menu 1 week ago
  • Channel Digital on Elementor Hello theme missing from menu 1 week, 1 day ago
  • Vladimir on Elementor Hello theme missing from menu 1 week, 1 day ago
  • Vladimir on URE Pro Not Restrictng on Elementor Theme Builder 3 months, 2 weeks ago
  • [email protected] on URE Pro Not Restrictng on Elementor Theme Builder 4 months ago
  • abmex on Restrict media library to user’s own media files only 4 months, 2 weeks ago
  • Vladimir on Restrict media library to user’s own media files only 4 months, 2 weeks ago
  • abmex on Restrict media library to user’s own media files only 4 months, 2 weeks ago
  • Contact Us
  • Privacy Policy
  • Terms of use (EULA)
© 2010 - 2026 Role-editor.com Contact: hd@role-editor.com