Read more about the article WooCommerce: Send Orders to External API
WooCommerce: Send Orders to External API

WooCommerce: Send Orders to External API

POST is used to send data to the server for the server to act upon in some way. For example, a Woocommerce order. When you order products on any online…

Comments Off on WooCommerce: Send Orders to External API

JQuery: Redirect all Third Party URLs to New Tab

Redirect all third-party links to a new tab without wasting time by using the below code. jQuery(document).ready(function($) { $("a[href^=http]").each(function(){ // NEW - excluded domains list var excludes = [ 'rapidboostmarketing.com',…

Comments Off on JQuery: Redirect all Third Party URLs to New Tab

Ajax Form Submission

<script type="text/javascript"> var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>"; </script> <script> jQuery(document).ready(function($){ $('form.ajax').on('submit', function(e){ e.preventDefault(); var that = $(this), url = that.attr('action'), type = that.attr('method'); var name = $('.name').val(); var…

0 Comments