jQuery form plugin, submit in the wordpress way

If you want to use the WordPress functions in your process.php file then there is a way for you. simply put these two lines of code at the top of your process.php file $blogheader = explode(“wp-content”,$_SERVER[“SCRIPT_FILENAME”]); include $blogheader[0].”wp-blog-header.php”; Now you can use the WordPress functions in your file and do what you want. Will that … Read more

Ajax Query returns zero

if ajax returns zero, the function bound is not registered properly have a read: http://arresteddeveloper.net/woocommerce-get-variation-description-variation-select-changes/ this might point you in the right direction

getJSON on WordPress Page

Turns out the issue was not with WordPress but with the PHP Configuration. allow_url_fopen was set to off on the server, whereas on the localhost it was on. When I updated that, the script worked fine. Thank you.

jQuery ajax empty exeption on wordpress

As I said in the comments. The problem was on api side. Error: (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). How to solve: Add this to .htaccess of api <IfModule mod_headers.c> Header set Access-Control-Allow-Origin: myUrl </IfModule>