In wp-admin, the admin can set a list of terms in Settings > Discussion that can be used to block spam comments.
This list is also used by other plugins, such as Contact Form 7, to help prevent contact form spam.
I’d like to know how to access this Disallowed Comment Keys list programmatically so I can utilise it in my own plugin?
2
Answers
In my experience, we cannot use default discussion setting on wordpress. I just want to suggest to use this plugin anyway. Thanks.
https://wordpress.org/plugins/turn-off-comments/