Home Forums Feature Requests Read-Only Field Reply To: Read-Only Field

  • I’m wondering how to make a field read only, to only users of a specific role?

    For instance I have a custom post type that contains fields that should only be edited by administrators, yet viewable by contributors and editors.

    Can I disable a field’s input via php or javascript based on role?