Bots posting comments on pages

In order to add a new comment you really only need a couple of fields and a POST method. In a typical comment form, requests are submitted to http://www.example.com/wp-comments-post.php which parses the $_POST data and sends it off to wp_handle_comment_submission. A POST method varies from a GET request in that params are usually sent in … Read more

How to bulk delete all WordPress subscribers?

I ended up deleting all users who had not made a post using the following two queries: First: DELETE FROM wp_users WHERE ID NOT IN (SELECT post_author FROM wp_posts) Second: DELETE FROM wp_usermeta WHERE user_id NOT IN (SELECT ID FROM wp_users)

How to disable WordPress trackbacks?

This can be solved using the Bulk Edit WordPress functionality. and Change the number of items to be shown in Screen Options, so you can select all posts/pages at once. Two things worth noting in the Q&A pointed by @BartKarp: There is the option to turn off trackbacks/pingbacks under Settings > Discussion. it has a … Read more

wp_redirection_404 table has grown to 7GB

That table is from the redirection plugin, and isn’t a part of WordPress Core. Deleting it should have no ill effects as long as you disable the plugin too. If you wish to continue using that plugin though, I recommend using the plugin authors support at https://wordpress.org/support/plugin/redirection/

New users must comment when requesting username

You can use a captcha plugin that requires users to type a short phrase or random letters in order to register on your site. An example of one of these plugins is the WP-reCAPTCHA, found at: http://wordpress.org/extend/plugins/wp-recaptcha/ Or you can use a plugin such as CIMY User Extra Fields to add fields to a user … Read more

How to expire all wordpress user passwords instantly?

Some underlying functionality borrowed from http://wordpress.org/extend/plugins/auto-expire-passwords/ , and tweaked. Untested, but along the lines of what you are looking for, so YMMV. function custom_forced_password_reset( $user ) { update_user_meta( $user->ID, ‘password_was_force_reset’, true ); } add_action( ‘password_reset’, ‘custom_forced_password_reset’ ); // Ensure all new register users have the flag set function custom_forced_password_user_register($user_id){ update_user_meta( $user_id, ‘password_was_force_reset’, true ); } … Read more

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