Comments snippets
Spam traps, limits, and turning comments off. Free, tested and ready to install in Snipfire in one click.
- 256 snippets
- 29 one-click packs
- Tested with WordPress 7.1 and WooCommerce 11.1
- No account needed
- Turn off comments everywhere Closes comments and pingbacks on every post and page, hides existing comments, and removes Comments from the admin menu, the admin bar and the dashboard. WooCommerce product reviews keep working.
- Close comments on posts older than 30 days New comments are only accepted on posts published in the last 30 days. Older posts keep their comments, but the form closes. Most spam goes to old posts.
- Spam trap in the comment form Adds a hidden field that people never see but bots fill in. Comments that fill it in are refused. No captcha, nothing sent to other companies.
- Only logged-in users can comment Visitors must log in before they can comment. Useful for membership sites and shops where only customers should leave comments.
- Maximum comment length Comments longer than 5,000 characters are refused. Spam bots often paste whole articles; real readers rarely write that much.
- Minimum comment length Comments shorter than 20 characters are refused with a friendly message. Stops “Nice post!” spam and empty replies.
- Newest comments first Shows the most recent comments at the top instead of the bottom.
- No clickable links in comment text Addresses typed in a comment show as plain text instead of links, so posting a link in your comments gains a spammer nothing.
- Don’t remember commenters in cookies WordPress stops saving the commenter’s name, email and website in cookies, and the “Save my name…” checkbox goes away. One less cookie to explain.
- No emails about comments waiting for approval WordPress stops emailing the site owner every time a comment is held for moderation. You still see them under Comments.
- No comments on media pages Closes comments on attachment pages, which nobody means to comment on and bots love.
- Remove the website field from comments The comment form stops asking for a website address, which removes the reason many spammers comment. Links already on old comments stay.
- Turn off pingbacks and trackbacks Closes pingbacks and trackbacks on every post, old and new. They’re almost all spam today.
No snippet matches that yet. Tell us what you need and we'll consider adding it. Suggest a snippet
Or install a whole pack
Packs group snippets that belong together. Open one in Snipfire, tick what you want and install: everything arrives switched off, or switched on together after one test load. Snippets that need your details, or that change how the whole site behaves, always stay off until you say so.
- Harden WordPress Close the doors attackers try first: XML-RPC, user name discovery, the file editors, revealing login errors. 7 snippets
- Clean up the head Remove the links, scripts and styles WordPress adds to every page that most sites never use. 7 snippets
- Performance Small changes that save the server and the browser some work. 7 snippets
- Turn off what you don’t use Each of these replaces a small plugin: no comments, classic editor, no feeds, no search and more. 9 snippets
- Admin and login Your branding on the login page, a tidier admin, and handy extras such as duplicating posts. 8 snippets
- Content and media Shortcodes, links, images and small design touches for the public site. 10 snippets
- WooCommerce essentials The small WooCommerce changes shop owners ask for most. 11 snippets
- Greek e-shop For shops in Greece: receipt or invoice with a checked VAT number (ΑΦΜ), Greek phone and postcode checks, a cash on delivery fee, and greeklish addresses. 6 snippets
- Privacy and GDPR Keep less personal data and send less of it to other companies. 4 snippets
- Analytics and pixels The usual tracking codes, ready to paste your ID into. Administrators’ visits aren’t counted. 6 snippets
- Comments Fewer spam comments and more control: close old posts, set minimum and maximum lengths, a spam trap, no links. 13 snippets
- Posts and the editor Make the block editor calmer and give pages excerpts, tags and categories. 14 snippets
- Images and media Sharper, lighter images, tidier uploads and a more useful media library. 11 snippets
- More admin tweaks Useful columns, a tidier admin bar, a welcome box for clients, and fewer menus for editors. 15 snippets
- Users and profiles Registration dates, last logins, social profile fields, longer sessions and stricter passwords. 9 snippets
- Login and security extras Limit login attempts, email-only logins, a registration spam trap and more hardening. 11 snippets
- Email Emails from your name and address, sent through SMTP, and fewer notification emails. 8 snippets
- SEO basics Meta descriptions, social sharing tags, article structured data and cleaner indexing, for sites without an SEO plugin. 11 snippets
- RSS feeds Control what your RSS feed shows, and when. 7 snippets
- Search and archives Better site search and cleaner archive pages. 6 snippets
- Design touches Small front-end touches: a reading progress bar, an announcement bar, a WhatsApp button, accessibility fixes. 11 snippets
- Shortcodes Handy shortcodes for dates, breadcrumbs, buttons, share links, members-only content and more. 12 snippets
- More speed More ways to load less: block styles, speculative loading, fewer scripts. 9 snippets
- Turn off more More features you may not need: sitemaps, trackbacks, automatic updates, pattern suggestions. 11 snippets
- Developer tools Maintenance mode, template names, page stats, environment labels and a WP-Cron viewer. 9 snippets
- WooCommerce: shop and product pages Badges, price display, tabs and layout for your shop and product pages. 22 snippets
- WooCommerce: cart and checkout Free-shipping progress, coupon links, quantity limits and a cleaner checkout. 15 snippets
- WooCommerce: account, emails and admin A leaner My account page, handier order lists and emails, and lighter pages. 9 snippets
- More tracking codes Google Ads, TikTok, LinkedIn, Pinterest, Hotjar, Plausible, site verification and a GA4 purchase event. 8 snippets
Library from Snipfire 0.15.1. Written from scratch for Snipfire, free to use on any site. Which plugins can a snippet replace?
Move your snippets over this afternoon.
Importing changes nothing until you switch over, and your old shortcodes keep working.