Warnings & Notes - Community Rules
Community rules is a new feature of warnings and notes that allows site administrators to create rules where users can be warned by moderators for violating them. A "Community Rules" section now appears in the dashboard once the "Warnings and Notes" plugin is enabled. Site administrators can then be allowed to create, modify and delete these rules.
Moderators can able to select a rule that was broken when warning a user. The violated rule will be visible by the user who received the warning.
Rules can be created from the dashboard.
Attaching rules to a warning
Once rules are configured a dropdown will become visible when creating a warning.
The infringed rule will appear on the warning, giving more information to the user.
Rules APIv2 Endpoints
API endpoints were also created to manage rules, but they might not be useful at the moment. It was previously discussed that this module could be made using react, but this was not part of the scope.