Skip to content

Early-bird lifetime licence: $199 once, for the first 200 buyers only. See the offer

Turn off pingbacks and trackbacks

Closes pingbacks and trackbacks on every post, old and new. They’re almost all spam today.

  • Type PHP
  • Runs Everywhere (runs as WordPress loads)
  • Category Comments
  • Tested with WordPress 7.1
PHP
<?php

add_filter( 'pings_open', '__return_false', 20 );
add_filter( 'pre_option_default_ping_status', static fn() => 'closed' );
add_filter( 'pre_option_default_pingback_flag', static fn() => 0 );

In these packs

  • Comments: Fewer spam comments and more control: close old posts, set minimum and maximum lengths, a spam trap, no links.
  • Turn off more: More features you may not need: sitemaps, trackbacks, automatic updates, pattern suggestions.

Move your snippets over this afternoon.

Importing changes nothing until you switch over, and your old shortcodes keep working.