The SVSFc Feedback plugin implements a straightforward feedback system for WordPress websites.
It allows visitors to express their opinion on articles by voting with a Yes or No action. The plugin tracks and displays the voting results as an average percentage. Key features include:
Two buttons for voting: Yes and No.
Each vote adds a "Positive" or "Negative" count to the voting results.
Voting results are displayed as an average percentage.
Ajax request for submitting votes without page reload.
Once a visitor votes, they can see the voting results immediately.
Prevents visitors from voting twice on the same article using their fingerprint (e.g., IP address).
Automatically displays the voting feature at the end of single post articles.
Responsive design for compatibility across various devices and screen sizes.
Usage:
Frontend (Visitor Perspective):
Visit any single post article on your website.
Scroll to the end of the article to find the feedback feature.
Click on the "Yes" or "No" button to submit your vote.
After voting, you will see the current feedback results displayed as an average percentage.
The buttons will remain inactive, but your vote will be displayed.
Refreshing the page will retain the feedback results and your vote.
Backend (Admin Perspective):
When editing an article in the admin area, you will see the feedback results in a meta widget.
The meta widget displays the positive and negative percentage of feedback.
Hooks
Two custom filter hooks also provided by this plugin
- svsfc_feedback_form Filter Hook:
This filter hook allows developers to modify or extend the HTML output of the feedback form displayed on the frontend of the website. When the svsfc_feedback_form filter hook is applied, it passes the HTML code of the feedback form ($voting_html) as a parameter. Developers can then manipulate this HTML code to customize the appearance or functionality of the feedback form according to their specific requirements.
Example usage:
add_filter('svsfc_feedback_form', 'customize_feedback_form');
function customize_feedback_form($voting_html) {
// Modify the HTML code of the feedback form here
$voting_html .= '
Custom content added to the feedback form.
';
return $voting_html;
}
In this example, the customize_feedback_form function adds custom content to the feedback form by appending it to the existing HTML code.
- svsfc_feedback_results Filter Hook:
This filter hook allows developers to modify or extend the HTML output of the feedback results displayed on the admin side of the website. Similar to the svsfc_feedback_form hook, when the svsfc_feedback_results filter hook is applied, it passes the HTML code of the feedback results ($voting_html) as a parameter. Developers can then manipulate this HTML code to customize the appearance or presentation of the feedback results as needed.
Example usage:
add_filter('svsfc_feedback_results', 'customize_feedback_results');
function customize_feedback_results($voting_html) {
// Modify the HTML code of the feedback results here
$voting_html .= '
Custom content added to the feedback results.
';
return $voting_html;
}
In this example, the customize_feedback_results function adds custom content to the feedback results by appending it to the existing HTML code.
By utilizing these filter hooks, developers can easily tailor the feedback form and results to suit their specific design preferences or functionality requirements
If you encounter any issues or have questions about the SVSFc Feedback plugin, please reach out to our support team at 12345adnan@gmail.com
Download the SVSFc Feedback zip file.
Log in to your WordPress admin panel.
Navigate to Plugins > Add New.
Click on the "Upload Plugin" button.
Choose the plugin zip file and click "Install Now"
Once installed, activate the plugin.
Configuration
on activation it will provide auto Configuration