/** * WPForms Custom Honeypot * * @author Bill Erickson * @link http://www.billerickson.net/eliminate-spam-with-a-custom-honeypot/ * * @param string $honeypot, empty if not spam, honeypot text is used in WPForms Log * @param array $fields * @param array $entry * @param array $form_data */ function be_wpforms_custom_honeypot( $honeypot, $fields, $entry, $form_data ) { $honeypot_class = 'my-bio-field'; $honey_field = false; foreach( $form_data['fields'] as $form_field ) { if( false !== strpos( $form_field['css'], $honeypot_class ) ) { $honey_field = absint( $form_field['id'] ); } } if( !empty( $entry['fields'][$honey_field] ) ) { $honeypot = 'Custom honeypot'; } return $honeypot; } add_filter( 'wpforms_process_honeypot', 'be_wpforms_custom_honeypot', 10, 4 );
Select Page

Contact

We look forward to helping you. Contact BioSpherix to learn more about our lab equipment for cell research.

Please make a selection from the links below that best matches your needs:

 

Contact Us:

Toll Free US/Canada: (800) 441-3414

Phone: (315) 387-3414

Fax: (315) 387-3415