'application/json; charset=UTF-8','x-lang'=>'tr','x-timezone'=>'180'); $response = wp_remote_post( $url, array( 'method' => 'POST', 'headers' => $header, 'body' => $data_string ) ); $result=$response["body"]; if ($result == 1 ) { $returnid = 1; } else if($result == 2){ $returnid=2; } else { $returnid = 0; } return $returnid; } ?>