Reducing spammy user sign-ups

I have been using Recaptcha which has the added benefit of helping to translate literature. (!)The plugin linked above will add Re-Captcha to your comments or registration form or both. It also has features like themes for the captcha forms. Definitely worth looking into.

How to block a someone from commenting?

In Settings > Discussion > Comment Blacklist. You can blacklist comments based on content, name, url, e-mail, or IP. To mark the comments as spam, what I would do, is to do a search for his IP and then there is a checkbox that will select all, then just mark as spam. Trick is, it … Read more

Mass delete spam accounts

Yes. There are a variety of ways to do this, primarily, we’ll need to tackle the wp_delete_user() function. Your first task, and the tricky one, is to identity which accounts are spam, and which are real. This can be quite an adventure if your site gains new users regularly. With the following example, we target … Read more

Check spam in custom form – akismet

The problem is the globals global $akismet_api_host, $akismet_api_port; are not available everywhere. I suggest calling your function in the “init” hook… add_action(‘init’, ‘myAkismetInit’); function myAkismetInit() { var_dump ( bm_checkSpam(”) ); } Check out the Akismet API documentation. The other option is to use one of these wrapper classes: https://github.com/tijsverkoyen/Akismet use \TijsVerkoyen\Akismet\Akismet; // create instance $akismet … Read more

Comments screen in backend, how to disable Quick Edit | Edit | History | Spam | for non admins

This is done filtering the *_row_actions. For the Comments screen (/wp-admin/edit-comments.php) this is the hook: add_filter( ‘comment_row_actions’, ‘comments_row_wpse_92313’, 15, 2 ); function comments_row_wpse_92313( $actions, $comment ) { if( !current_user_can( ‘delete_plugins’ ) ) unset( $actions[‘quickedit’], $actions[‘edit’], $actions[‘spam’] ); return $actions; } I cannot see a History option, maybe it’s included by some plugin (?). It’s a … Read more

Number of External Links in Comments – Moderation Option

Haha, I actually figured out a way to do this. As a plugin, this should work. class JPB_CommentCounter { var $count = 0; function __construct(){ add_filter( ‘pre_comment_content’, array( $this, ‘content’ ), 100 ); add_filter( ‘comment_max_links_url’, array( $this, ‘counter’ ) ); } function JPB_CommentCounter(){ $this->__construct(); } function counter( $num, $url ){ if($this->count < 1) return $num; … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)