[ad_1]
Hi so i created a custom plugin but i have no idea where i could ask anyone about coding questions regarding to wordpress.
I want a comment to run through my function when a comment is created to check if its spam or not, and if my code says so i want to block it
[ad_2]
You created a plugin, or you want to create a plugin? What code have you written?
https://developer.wordpress.org/reference/hooks/pre_comment_content/ is what you’re looking for.