Email Feedback Status
-
Hi Team,
I’d like to suggest an improvement to the email feedback submission handler (
wp_ajax_nopriv_betterdocs_feedback_form_submit,FeedbackForm::submit).Currently, it appears that the handler processes requests regardless of whether the Email Feedback option is enabled in the settings. In my case, I’ve started receiving spam submissions through this endpoint, even after disabling the feature via Settings > Single Doc > Email Feedback.
To prevent this, could you please consider adding a conditional check like the following before processing the request?
if ( ! betterdocs()->settings->get( 'email_feedback' ) ) { wp_send_json_error( 'Email feedback is disabled.' ); }This would help ensure that direct requests to the admin-ajax endpoint are properly blocked when the feature is disabled.
Thank you for your attention to this!
The topic ‘Email Feedback Status’ is closed to new replies.