WP Armour Blocking Subaccount AJAX Registration (No Tag Present)

Home Forums WP Armour – Honeypot Anti Spam WP Armour Blocking Subaccount AJAX Registration (No Tag Present)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #521417 Reply
    Tony
    Guest

    Hi team,

    We’re using WP Armour Extended alongside a plugin that handles multi-user subaccount creation via AJAX (no standard <form> tag). The issue is that WP Armour seems to be blocking the AJAX registration request for subaccounts.

    Here’s a summary of the setup:

    The subaccount creation UI is JavaScript-driven, with no <form> tag.

    It sends a POST request via $.post() to admin-ajax.php, using the action: smuac_create_multiaccount.

    The plugin does not render a traditional form but instead builds and submits data via jQuery.

    What we’ve tried so far:

    Added filter to bypass validation for this action:

    add_filter('wparmour/bypass_validation', function($bypass) {
        if (isset($_POST['action']) && $_POST['action'] === 'smuac_create_multiaccount') {
            return true;
        }
        return $bypass;
    });

    Excluded the CSS class from WP Armour settings (.smuac_multiaccounts_new_account_container) in the Ignored Forms section.

    Neither approach has resolved the issue — submissions are still silently blocked or do not go through.

    Can you advise:

    The best way to bypass WP Armour for a JavaScript/AJAX-only form submission?

    Whether there’s a hook we can use earlier in the WP Armour logic to ensure it doesn’t block this specific request?

    We can provide any logs or debug info you need.

    Thanks in advance for your help!

    #521439 Reply
    Dinesh
    Keymaster

    Hi,

    Thanks for the detailed explanation. Just to clarify — is this AJAX-based multi-user subaccount functionality coming from a specific plugin, or is it part of custom code?

    If it’s from a plugin, could you please share the name of the plugin (or the plugin itself if possible)? That’ll help me better understand how it’s structured and how WP Armour can be adjusted to support it properly.

    Looking forward to your response!

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: WP Armour Blocking Subaccount AJAX Registration (No Tag Present)
Your information: