How to disable Pingbacks and Trackbacks for all articles in WordPress?

allowableWordPress In the background "Settings" → "Discussion", uncheck "Receive trackbacks (pingbacks and trackbacks) from external blogs" ▼

How to disable Pingbacks and Trackbacks for all articles in WordPress?

  • Uncheck this option and save the settings.

Pingbacks and trackbacks will no longer be enabled for new articles or pages in the future.

Although the background settings no longer receive trackbacks (pingbacks and trackbacks) from external blogs, the previous pingbacks and trackbacks functions are still enabled, so you need to enterMySQL databaseExecute SQL query.

We can use a simple command to turn off pingbacks and trackbacks for all articles ▼

UPDATE wp_posts SET 'ping_status' = 'closed';

But whenMySQLAfter the database executes this command, an error will be reported. The following is a more detailed solution ▼

UPDATE wp_posts SET ping_status = 'closed' WHERE post_date < '2022-08-01'
  • display 2022-08-01 previous posts will specify ping_statusvalue is yes open,close Or registered_only.
  • In addition, the date needs to be set (the modification code is 2022-08-01).

If you want to know what is the use of Ping, Trackback and Pingback in WordPress, you can read the following article ▼

Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "How to disable Pingbacks and Trackbacks for all articles in WordPress in batches? , to help you.

Welcome to share the link of this article:https://www.chenweiliang.com/cwl-28719.html

Welcome to the Telegram channel of Chen Weiliang's blog to get the latest updates!

🔔 Be the first to get the valuable "ChatGPT Content Marketing AI Tool Usage Guide" in the channel top directory! 🌟
📚 This guide contains huge value, 🌟This is a rare opportunity, don’t miss it! ⏰⌛💨
Share and like if you like!
Your sharing and likes are our continuous motivation!

 

Comment

Your email address will not be published. Required fields * Callout

scroll to top