Keep Subscribers Out of wp-admin
Redirects users who cannot edit posts (subscribers, customers) to the homepage when they try to open the admin area. AJAX and admin-post requests keep working.
Snippet Library
3,040 free snippets from the WPIDE team and the community. Copy the code, or add any snippet to your site in one click with WPIDE.
Redirects users who cannot edit posts (subscribers, customers) to the homepage when they try to open the admin area. AJAX and admin-post requests keep working.
Adds a role (or replaces the current one) when a student completes a chosen course, such as promoting trainees to "Instructor".
Gives users access to chosen LearnDash courses as soon as they are given a role, for example enrolling every new "Employee" in the compliance training.
Adds a role to students when they pass a chosen LearnDash quiz, for example a "Certified" role that unlocks a members area.
Gives editors access to Appearance > Menus and Widgets without letting them switch themes or open the Customizer.
Allows editors to add, edit and remove users, while making sure they can never create administrators or touch administrator accounts.
Adds an "I am signing up as" choice to the registration form that gives the new account one of the roles you allow, for example Reader or Writer.
Adds a role to students when they complete a chosen LifterLMS course, for example to unlock a graduates-only area.
Gives users an extra role when they join a LifterLMS membership and removes it again when they leave, so other plugins can use roles for access.
Caps the number of accounts for chosen roles, such as a maximum of 3 Editors, and blocks adding or promoting anyone beyond that limit.
Gives authors and contributors a short list of everyday blocks (text, headings, lists, images, quotes, embeds) while editors and administrators keep every block.
Shows super admins every site a user belongs to, with their role on each, at the bottom of the user's profile screen.
Ends all of a user's active sessions as soon as an administrator changes or removes their role, so a demoted account cannot keep using old access.
Takes away the authors' right to publish, so their posts go to Pending Review for an editor to approve.
Gives members an extra WordPress role when they buy a membership and removes it when that membership expires, so role-based plugins can follow MemberPress.
Adds a "Members only" box to the post and page editor; restricted content shows a login prompt to visitors and to roles you did not tick, and stays out of search and feeds for them.
Adds a WordPress role that matches the member's level when they join and removes it when they cancel, expire or change level.
Shows chosen payment methods, such as "Pay by invoice" or cheque, only to trusted roles like trade customers, and hides them from everyone else.
Shows lower prices across the store for customers with a specific role, such as wholesale buyers, without editing each product.
Hides a category's products from the shop, search and product pages for everyone except the roles you choose, such as trade customers or members.
Removes the Rank Math meta box for users who cannot publish pages, leaving SEO settings to editors and administrators.
Changes the names roles show on the Users screen and in role menus, for example "Subscriber" to "Member", without touching capabilities or the database.
Only administrators can lock and unlock blocks, so locked layouts stay intact when other users edit content.
Makes chosen coupon codes work only for customers with specific roles, such as staff discount codes or trade-only promotions.