var wpa_field_name, wpa_unique_id, wpa_add_test, wpa_hidden_field; jQuery(document).ready(function(){ wpa_field_name = wpa_field_info.wpa_field_name; wpa_unique_id = wpa_field_info.wpa_field_value; wpa_add_test = wpa_field_info.wpa_add_test; wpa_hidden_field = ""; wpa_add_honeypot_field(); if (typeof wpae_add_honeypot_field == 'function') { // IF EXTENDED version exists. wpae_add_honeypot_field(); } if (wpa_add_test == 'yes'){ wpa_add_test_block(); } }); function wpa_act_as_spam(){ actiontype = jQuery('span.wpa-button').data('actiontype'); if (actiontype == 'remove'){ wpa_remove_honeypot_field(); jQuery('span.wpa-button').data('actiontype','add'); jQuery('span.wpa-button').html('Acting as Spam Bot'); } else { wpa_add_honeypot_field(); jQuery('span.wpa-button').data('actiontype','remove'); jQuery('span.wpa-button').html('Act as Spam Bot'); } } function wpa_add_honeypot_field(){ jQuery('.bbp-topic-form form').append(wpa_hidden_field); // BBPRESS TOPIC jQuery('.bbp-reply-form form').append(wpa_hidden_field); // BBPRESS REPLY jQuery('form#commentform').append(wpa_hidden_field); // WP COMMENT jQuery('form#ast-commentform').append(wpa_hidden_field); // Astra Comment Form jQuery('form#fl-comment-form').append(wpa_hidden_field); // Beaver Builder Theme Form jQuery('form.wpcf7-form').append(wpa_hidden_field); // CONTACT FORM 7 jQuery('form.wpforms-form').append(wpa_hidden_field); // WPFFORMS jQuery('.gform_wrapper form').append(wpa_hidden_field); // GRAVITY FORMS jQuery('.frm_forms form').append(wpa_hidden_field); // Formidible forms jQuery('.caldera-grid form').append(wpa_hidden_field); // Caldera forms jQuery('.wp-block-toolset-cred-form form').append(wpa_hidden_field); // Toolset Forms jQuery('form.et_pb_contact_form').append(wpa_hidden_field); // Divi Form jQuery('form.fb_form').append(wpa_hidden_field); // Divi Form builder - Divi Engine jQuery('form.elementor-form').append(wpa_hidden_field); // FOR Elementor jQuery('form.form-contribution').append(wpa_hidden_field); //WooCommerce Reviews Pro // FOR FLUENT FORMS jQuery('form.frm-fluent-form').append(wpa_hidden_field); // FOR Fluent Forms jQuery('.ff_conv_app').append(wpa_hidden_field); // FOR Fluent Convertional Forms if (typeof fluent_forms_global_var_1 !== 'undefined') { // QUICK HACK FOR FLUENT FORMS CONVERSIONAL fluent_forms_global_var_1.extra_inputs[wpa_field_name] = wpa_unique_id; } // EOF FLUENT FORMS jQuery(wpa_hidden_field).insertAfter('input.wpa_initiator'); // FOR WPA INITIATOR (WP registration) } function wpa_add_test_block(){ checkingTest = '