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.
📌 MemberPress: advanced WordPress plugin for
subscriptions & membership sites
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.
Wordpress Tips
WordPress Function: Auto-Reply to Comments Based on Keywords
By
Wordpress Jedi
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.
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.
More WP Tips:
More in Wordpress Tips
Wordpress Tips
Spotlight Card Effect for WordPress
WordPress already comes with everything you need to share your content with the world. There are...
Wordpress Tips
Secret Shake WordPress Plugin to Reward Mobile Users
Adding secret features to your website is one way to surprise your visitors and keep them...
Wordpress Tips
How to Redirect Authors to Unfinished Content
We all have long pieces that need multiple ways to finish up. You don’t have to...
Wordpress Tips
How to Build a 404 Dashboard for WordPress
I don’t know about you but I find old posts with broken links all the time....
Wordpress Tips
Smart Content Reveal WordPress Script
In the past few years, we have covered a whole host of plugins and scripts that...
Current Visits:
Top WP Plugins
Trending
Wordpress Plugins
Divi Theme Color Preview Extension for WordPress
WordPress Themes
AI ImageGen: Divi Landing Page Theme for AI Image Generation Sites
Wordpress Plugins
Public Roadmap & Feedback Board WordPress Plugin
Wordpress Tips
Advanced Bad Bot Attack Tactics for WordPress
Tags
GDPR