This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//AUTHOR: Ronn0 ( stackoverflow.com 31787244 ) | |
if (isset($_POST['isOrder']) && $_POST['isOrder'] == 1) { | |
$address = array( | |
'first_name' => $_POST['notes']['domain'], | |
'last_name' => '', | |
'company' => $_POST['customer']['company'], | |
'email' => $_POST['customer']['email'], | |
'phone' => $_POST['customer']['phone'], | |
'address_1' => $_POST['customer']['address'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*IS NOT WOOCOMMERCE*/ | |
if ( ! function_exists( 'is_ajax' ) ) { | |
/** | |
* is_ajax - Returns true when the page is loaded via ajax. | |
* @return bool | |
*/ | |
function is_ajax() { | |
return defined( 'DOING_AJAX' ); | |
} |