AJAX Request 400 Error

[ad_1]

I’ve been working on creating a custom plugin that has a simple form input and button to use ajax to search custom tables, but i am running into a bad request issue when submitting the form.

I’ve already added in my enqueue scripts, localize\_scripts and nonce checks.

I have my functions all running in my main plugin php file.

My javascript is in a separate file but is enqueued onto the page.

The main part of the plugin is just outputting html to the page via shortcode.

I can share more my code snippets via private messages.

Any help would be appreciated. I don’t mind paying for your time.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer