{"id":415298,"date":"2024-12-09T08:00:00","date_gmt":"2024-12-09T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/domain-based-role-assignment\/"},"modified":"2024-12-10T04:50:00","modified_gmt":"2024-12-10T04:50:00","slug":"domain-based-role-assignment","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/domain-based-role-assignment\/","title":{"rendered":"Domain Based Role Assignment"},"content":{"rendered":"<p>Domain Based Role Assignment automatically assigns user roles based on their email domains during registration. It provides a simple admin interface to manage domain-to-role mappings and streamlines user role management.<\/p>\n<h4>Key Features<\/h4>\n<ul>\n<li>Automatic Role Assignment: Automatically assigns roles to users based on their email domain during registration<\/li>\n<li>Domain Management: Easy-to-use admin interface to manage domain-role mappings<\/li>\n<li>Works with Role Editor: Compatible with all WordPress roles, including custom roles<\/li>\n<li>Simple Administration: Add, view, and delete domain rules through a clean admin interface<\/li>\n<li>Bulk User Management: When removing a domain rule, preserves user accounts while managing role assignments<\/li>\n<li>Security: Implements WordPress security best practices and nonce verification<\/li>\n<\/ul>\n<h3>Configuration<\/h3>\n<p>= Adding Domain Rules =<br \/>\n1. Go to \u2018Settings > Domain Role Assignment\u2019 in your WordPress admin panel<br \/>\n2. In the \u201cAdd New Domain Rule\u201d section:<br \/>\n   * Enter a domain (e.g., \u201cexample.com\u201d)<br \/>\n   * Select the role to assign<br \/>\n   * Click \u201cAdd Domain Rule\u201d<\/p>\n<h4>Managing Existing Rules<\/h4>\n<ol>\n<li>View all current domain rules in the \u201cCurrent Domain Rules\u201d table<\/li>\n<li>Each rule shows:\n<ul>\n<li>The domain<\/li>\n<li>The assigned role<\/li>\n<li>Option to delete the rule<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>Technical Details<\/h3>\n<p>Requires WordPress 5.0 or higher and PHP 7.2 or higher.<\/p>\n<h3>Support<\/h3>\n<p>For support:<br \/>\n1. Check configuration<br \/>\n2. Verify WordPress version compatibility<br \/>\n3. Check error logs<br \/>\n4. Ensure proper permissions<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Automatically assign WordPress user roles based on email domains during registration with an easy-to-use domain management interface.<\/p>\n","protected":false},"author":65,"featured_media":265969,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Domain Based Role Assignment - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Automatically assign WordPress user roles based on email domains during registration with an easy-to-use domain management interface."},"footnotes":""},"categories":[1],"tags":[18093,58943,58944,1615,11370],"class_list":["post-415298","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-domain-management","tag-email-domains","tag-role-assignment","tag-user-management","tag-user-roles"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/415298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=415298"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/415298\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/265969"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=415298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=415298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=415298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}