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.
🖖 KnownHost: super reliable Dedicated, VPS, Cloud & Shared hosting for
WordPress, online communities & social networks
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
Advanced Bad Bot Attack Tactics for WordPress
When you are just starting a website, chances are you won’t have to deal with too...
Wordpress Tips
Google Analytics Advanced Tips [Infographic]
Google Analytics doesn’t need any introduction. it is used by many webmasters to monitor traffic and...
Wordpress Tips
Living Scroll: Clever Script that Dynamically Writes Your Content
In the past few years, we have covered some fun effects for WordPress that require just...
Wordpress Tips
Time-Travel Publish: How to Backdate New Posts by a Random Number of Minutes
In the past few years, we have covered plenty of WordPress scripts that make your site...
Wordpress Tips
How to: Add Emoji-Avatar Comments to WordPress
It is no secret that standard WordPress comments can be a bit boring. You can always...
Current Visits:
Top WP Plugins
Trending
Wordpress Plugins
Pet Hotel Booking WordPress Plugin
Wordpress Plugins
5 WordPress Plugins for Claude
Wordpress Plugins
Export Media URLs for WordPress Media Library
Wordpress Plugins
Omni Image Optimizer WordPress Plugin with AI
Tags
GDPR