GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Deleting pending comments on wp blog (https://gfy.com/showthread.php?t=1076203)

beks001 07-28-2012 12:40 PM

Deleting pending comments on wp blog
 
Is there an easier way to delete all my pending comments besides in the wp admin area? I have like 2k comments pending. Need to wipe em out faster than 20 at a time.

fris 07-28-2012 12:42 PM

Code:

DELETE FROM wp_comments WHERE comment_approved=0
via mysql command

SuziQT 07-28-2012 02:23 PM

Also, if you are not comfortable with fris's solution, you can change the amount of comments that appear under "Screen Options". The default is 20 but I have mine set to 100.

papill0n 07-28-2012 02:27 PM

or you can just use the 'delete pending comments' plugin
http://wordpress.org/extend/plugins/...ding-comments/

fris 07-28-2012 02:27 PM

also a plugin exists do delete them all

http://wordpress.org/extend/plugins/...omment-remove/

Colmike9 07-28-2012 02:28 PM

Either use Akismet's 'delete all' button if you use that, setting the max in screen options or this in phpMyAdmin but always back up your database before doing it:

DELETE FROM wp_comments WHERE comment_approved = 0

Note: If your comments table is prefixed with wp_something will need to use the correct table name.
:upsidedow

Colmike9 07-28-2012 02:28 PM

Quote:

Originally Posted by fris (Post 19086422)
also a plugin exists do delete them all

http://wordpress.org/extend/plugins/...omment-remove/

That too
:thumbsup

beks001 07-29-2012 08:20 AM

Quote:

Originally Posted by fris (Post 19086313)
Code:

delete from wp_comments where comment_approved=0
via mysql command

Quote:

Originally Posted by suziqt (Post 19086413)
also, if you are not comfortable with fris's solution, you can change the amount of comments that appear under "screen options". The default is 20 but i have mine set to 100.

Quote:

Originally Posted by papill0n (Post 19086421)
or you can just use the 'delete pending comments' plugin
http://wordpress.org/extend/plugins/...ding-comments/

Quote:

Originally Posted by colmike7 (Post 19086423)
either use akismet's 'delete all' button if you use that, setting the max in screen options or this in phpmyadmin but always back up your database before doing it:

Delete from wp_comments where comment_approved = 0

note: If your comments table is prefixed with wp_something will need to use the correct table name.
:upsidedow


thank you all!


All times are GMT -7. The time now is 03:19 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc