Open nelsonic opened 4 years ago
users.php
: https://github.com/WordPress/WordPress/blob/master/wp-admin/users.php
The main file for permissions (which are called "capabilities" in Wordpress) is: /wp-includes/capabilities.php
https://github.com/WordPress/WordPress/blob/0bf9b04c53e29cd0f05af51037189a7963ccd9a9/wp-includes/capabilities.php
The file is 1074 lines. ⏳
This is a good post on the topic: https://wedevs.com/98266/add-custom-user-roles-wordpress