9Users and User Data
When WordPress was first launched more than 15 years ago, it was primarily a blogging system used by individuals. Over the years, it has become more of a content management system (CMS) that powers nearly any type of site conceivable. A large part of what is possible now centers on its user system. Today, WordPress powers websites with thousands, hundreds of thousands, and even millions of users.
Knowing how WordPress handles users is now an important tool in any plugin developer's toolbox. You will deal with various user scenarios in many of your plugins. Perhaps, more important, understanding the roles and capabilities system is paramount to developing a solid and secure plugin. Roles and capabilities define what users can do within individual sites. They represent the permissions system for WordPress.
People use WordPress for private membership sites, social networks, online journalism, medical databases, education centers, and much more. Each of these types of websites might require plugins to handle users and permissions. When creating plugins for these sites, it is often important ...
Get Professional WordPress Plugin Development, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.