To make this more WP-ish:
function wpse_delete_trackbacks()
{
global $wpdb;
$wpdb->query( $wpdb->prepare(
"
DELETE FROM %s WHERE `comment_type` = 'trackback'
",
"{$wpdb->prefix}comments"
) );
}
Related Posts:
- How do I permanently disable Pingbacks?
- How to disable WordPress trackbacks?
- how to reduce the number of spam comments
- A spam bot loves me, what can I do?
- How to spam-filter a custom content type with the Akismet plugin?
- Getting trackback spam, even with trackbacks disabled
- How to block a someone from commenting?
- Reducing spammy user sign-ups
- How to reduce spam
- What are all these spam subscribers doing here?
- How can I delete all users which have never commented / have posted spam comments?
- Comment Spammed vs Trashed
- Contact Form 7 being hijacked to send spam? [closed]
- getting casino links on my woocommerce site [closed]
- How to locate & delete hidden pages on a site
- How is my non-published blog getting so much spam?
- Contact Form 7 Plugin send emails to my Gmail as spam [closed]
- Automated spam being caught in 2 posts. Can this be used to help get rid of spam on everyone’s sites?
- WordPress Site has 35K spam images
- WordPress Phone Verification
- Is the tagline area spam-bot proof?
- Spam email sent from my [email protected] account
- How to block spam blocks pointing to a same website [closed]
- WordPress VPS out of Memory Problem
- Is it possible to determine proxy based comments?
- How to track down a phantom contact form?
- How to get rid of spam forever?
- Spams, Scams on WordPress site – what to do?
- Auto block ALL IP’s indicated by Akismet?
- Simple comments spam solution
- How to stop people from using my domain to send spam? [duplicate]
- how to trash WordPress comments if its not in English
- WordPress and wamp sending “Delivery status notification Failure” to my inbox every 7 minutes
- Why do I get comment spam even with Akismet and Captcha?
- What is rel=”pingback”, and what is the use of this in my website?
- Is There a Way to Completely Turn Off Pingbacks/Trackbacks?
- Removing the “Website” Field from Comments and Replies?
- Shall i disable pingbacks and trackbacks in my blog?
- Experiences with adding Nonces to the comment form
- Tips for finding SPAM links injected into the_content
- How to deal with small scale comment spam on small commercial sites? [closed]
- How do I stop my blog from pinging back itself?
- What methods should be used to fend off splogs in a multiuser install? [closed]
- What’s the easiest way to close comments on media/attachments?
- Does blocking xmlrpc.php affect pinging update services like pingomatic
- Remove option to allow trackbacks/pingbacks from post page options
- How to remove comment spam in WordPress
- How is comment spam received without a comments form?
- Local wordpress setup with SPAM in the incoming links dashboard section?
- Disabled trackbacks in WordPress but I am still receiving trackbacks
- What Data Is Being Sent To/From Sites With Trackback Or Pingback?
- How to auto-approve internal pingbacks?
- Disabling pingback and trackback notifications
- How to prevent spam users registering even with registration disabled
- Allow anonymous comments, but prevent spam [closed]
- How do I stop Topsy from spamming my site with those annoying trackbacks?
- How to remove pingback from head?
- How exactly does Bad Behavior plugin work?
- Is there any advantage to emptying comment spam?
- Why do I get email notifications about comments that WordPress has already determined are spam?
- How can comments be submitted when I don’t have a comment box on a page?
- Number of External Links in Comments – Moderation Option
- Altering the pingback functionality
- Comments screen in backend, how to disable Quick Edit | Edit | History | Spam | for non admins
- Check spam in custom form – akismet
- Mass delete spam accounts
- What is the best way to avoid spammers registering to my blog?
- How to show Disqus comments and pingbacks?
- Turn off trackback/pingbacks and comments on all existing multisite sites
- What do spammers gain by signing up as a user?
- Strategies for coping with hyperagressive spambots?
- Website is being flooded [closed]
- How Do I Prevent Junk Account Creation?
- Disable External Pingacks on WordPress Posts and Only Allow ‘Self Pings’
- Akismet plugin is deleting spam despite preferences
- Why do Trackbacks/Pingbacks not appear below my posts/pages?
- Hacked website redirect, only on desktop, help with restoring it [closed]
- pingback returns faultCode 0, no message
- How can I automatically delete comments that contain chinese / russian signs?
- Comments view limited to 20 results – any way to increase to 50 or 100?
- Something is generating spam pages on my site
- Notify WordPress Site I Have Linked To Them
- Remove default user registration, login and subscriber profiles
- How to expire all wordpress user passwords instantly?
- Buddypress Fake (non-bot) Users [closed]
- New users must comment when requesting username
- Pings and replies
- Report spam button
- Why don’t I see pingbacks?
- wp_redirection_404 table has grown to 7GB
- How to bulk delete all WordPress subscribers?
- Bots posting comments on pages
- Compact pingback list with favicons
- 14,000 WordPress Users. How did they get there?
- Separete trackbacks/pings and numbered comments
- Invisible spam post in backend
- Auto delete WordPress users according to time
- How to make a secure blog that is completely private?
- Auto delete comment if Contains
- Disqus comments and pingback script – how to change the order?