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

  • Role editor widget has vanished from pages in admin
  • Issue with Image Insertion in Posts – User Role Editor Pro
  • Item not available in Admin Menu
  • Restrict by Taxonomy, but Allow Access to all Taxonomy Items
  • Editor role – Siteground Speed Optmiser – Flush Cache
  • Editor Access to Appearance / Menus
  • WP Version 6.8 – Text Domain Error
  • Prevent Unauthenticated Access to CPT by Default
  • Other roles not restricted
  • Admin not having WP backend menu items

Recent Replies

  • [email protected] on Item not available in Admin Menu 1 month, 2 weeks ago
  • Vladimir on Item not available in Admin Menu 1 month, 2 weeks ago
  • VC Team on Admins can’t see new CPTs 1 month, 3 weeks ago
  • Stephen001 on Editor Access to Appearance / Menus 2 months ago
  • Vladimir on Editor Access to Appearance / Menus 2 months ago
  • Vladimir on WP Version 6.8 – Text Domain Error 2 months, 2 weeks ago
  • Vladimir on WP Version 6.8 – Text Domain Error 2 months, 2 weeks ago
  • camber799 on Prevent Unauthenticated Access to CPT by Default 3 months ago
  • Channel Digital on Multisite – Capabilities reset when restricting access to a plugin 3 months, 2 weeks ago
  • Channel Digital on Multisite – Capabilities reset when restricting access to a plugin 3 months, 3 weeks 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