WPFront
  • Home
  • Plugins
    • Notification Bar Plugin
      • Plugin Ideas
      • Plugin Settings
      • Plugin FAQ
    • Scroll Top Plugin
      • Plugin Settings
      • Plugin FAQ
    • User Role Editor Plugin
      • Plugin Documentation
      • Plugin Settings
      • Plugin FAQ
    • Paddle Gateway Plugin
  • Go Pro
  • Support
    • Documentation
    • FAQ
  • Affiliates
  • Contact
  • Login
  • Cart
  • This topic has 2 replies, 2 voices, and was last updated 5 years, 11 months ago by Eclipse Creative.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 24, 2019 at 12:45 pm #85096
    Eclipse Creative
    Spectator

    Hi Syam,

    For CPT’s I have one which is a plural name ‘documents’ as it’s a library of multiple documents per post. In WPFront this is showing up in permissions with a double ss.

    Example of the double ss’s;
    publish_documentss edit_documentss delete_documentss edit_published_documentss delete_published_documentss edit_others_documentss delete_others_documentss read_private_documentss edit_private_documentss delete_private_documentss

    *Not sure if would be easy to do a check for ending s and not double it up.

    Thanks

    May 24, 2019 at 10:09 pm #85117
    Syam Mohan
    Keymaster

    Hello,

    In WordPress standards, CPT names are ‘singular’. So that’s why the role capabilities come with ‘plural’ names.

    If we were to not use the plural name for role capability, then it will create a conflict. Because under the hood, both singular and plural capabilities exists. For example if you have a CPT called ‘ABC’, then both ‘edit_abc’ and ‘edit_abcs’ exist in the system. If we were to ignore the ‘s’ because ‘ABC’ itself is plural, then it will conflict between singular and plural capabilities.

    Not only that I don’t think checking for an ‘s’ at the end is always going to satisfy the condition.(Ex: address)

    Thanks

    Syam

    May 24, 2019 at 11:20 pm #85119
    Eclipse Creative
    Spectator

    Thanks Syam,

    That makes sense for sure, I appreciate the explanation.

    All the best

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In
Log In
Lost Password

Search Topics

Documentation

FAQ
Roles List Add Role Edit Role Delete Role Restore Role Add or Remove Capability Assign/Migrate Users Posts/Pages Extended Permissions Custom Post Type Permissions Navigation Menu Permissions Widget Permissions Admin Menu Editor Media/Attachment File Permissions User Level Permissions Content Restriction Shortcodes Login Redirect Export Roles Import Roles Bulk Edit Settings Multisite Roles List Multisite Add New Role Multisite Edit Role Multisite Delete Role Multisite Restore Role Multisite Sync Roles Multisite Settings WordPress Capabilities Actions and Filters Installation Instructions