Add WP Armour Support for your Custom Forms

If you’re comfortable adding custom code to your form, you can easily add a dynamic field using our plugin. Simply add the following code to your form before the form closing tag:

<input type="hidden" id="wpa_initiator" class="wpa_initiator" name="wpa_initiator" value="" />

To prevent spam bots from submitting your form, you can add the following code before your form’s submission process:

if (wpa_check_is_spam($_POST)){
     do_action('wpa_handle_spammers','YOUR_CUSTOM_FORM_NAME', $_POST); // FOR RECORDING PURPOSE     
     // YOUR CODE TO BLOCK SUBMISSION
     return $GLOBALS['wpa_error_message']; // RETURNING ERROR MESSAGE
}

By following these steps, you can easily add WP Armour support to your custom forms.