How is working the AI Comments Moderator for Wordpress plugin

2024-07-13 5

I have created a simple plugin for Wordpress, using PHP and the Gemini API. This plugin uses a hook to get the last created comment on Wordpress. Then it verifies if the comment meets the rules of the administrator for automatic moderation and then requires the Gemeni API opinion. If returns Yes, the comment will be moved to spam. This plugin supports multiple rules.