Connect with us

Wordpress Tips

WordPress Function: Auto-Reply to Comments Based on Keywords

When it comes to growing your community, you not only need fresh content regularly but also need to engage your loyal readers through comments and other activities. You may not have the time to respond to every comment yourself though. The good news is you can write a simple block of code to reply to certain comments automatically. For example, you can write a function that checks if someone is asking for the price of your product to provide them with the relevant link.

Tip: 20 ways to drive more traffic to your site

All you need to do is update the keyword array to add custom replies. For example, you can add a discount message for your shop. When someone comments with specific keywords, this function activates to automatically reply to them.

Continue Reading
You may want to check out:
*some of our articles and lists include affiliate links to fund our operations (e.g. Amazon, Elegant Themes, Envato). Please read our disclaimer on how we fund Exxponent.
You may also like...
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

More in Wordpress Tips

To Top