Change WordPress user roles and capabilities Forums Restrict or Permit access inside WordPress – how to How to restrict specific settings within a wordpress plugin

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7956
    corradoizzo
    Participant

    Hi

    I have a wordpress plugin that has a high number of settings.

    I know how to restrict access from the entire settings as a whole but how can i restrict access to a specific setting within the settings?

    Is there a method i can follow?

    do i have to add a capability? how do i identify the ID?

    Thank you

    Josh & Corrado

    #7959
    Vladimir
    Keymaster

    Hi,

    It’s difficult or impossible, if plugin does not offer itself some filters for this purpose.
    General road, to find CSS class of HTML element ID of selected section and hide it by condition via JavaScript. Look at the example (it was made for front-end though).

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.