«wp-remote-post» 태그된 질문

1
wp_remote_post ()를 통해 JSON 문자열 보내기
mailchimp 통합을 구축 중이며 JSON 코드로 POST 호출이 필요합니다. 아니요, 실제로 작동 하는이 코드를 사용하고 있습니다 . $data = wp_remote_post($url, array( 'headers' => array('Content-Type' => 'application/json; charset=utf-8'), 'body' => json_encode($array_with_parameters), 'method' => 'POST' )); 그러나 PHP 경고를 반환합니다. 경고 : http_build_query () : 매개 변수 1은 배열 또는 객체 일 …
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.