i am trying to make a Honeypot to prevent spam-emails.
i tried to use the following filter, which i found on your support Blog.
//##
function loadtime_func() {
return time();
}
add_shortcode('loadtime', 'loadtime_func');
add_filter('cred_form_validate','honeypot_func',10,2);
function honeypot_func($field_data, $form_data)
{
list($fields,$errors)=$field_data;
I would not recommend the use of this code for the spam protection given that this was done perhaps at a time when we didn't have the spam protection integrated into our form.
I would recommend following the instructions below in order to protect your form from spam.