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
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

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