$dados = array( 'author' => 'victor', 'email' => 'contato@wstudio.com.br', 'url' => 'http://www.awebmasters.com.br', 'comment_post_ID' => $post_id,//valor dinamico 'comment_parent' => '0', 'comment' => 'comentário', ); curl_setopt($cURL, CURLOPT_POST, true); curl_setopt($cURL, CURLOPT_POSTFIELDS, $dados); $resultado = curl_exec($cURL); curl_close($cURL);
Da erro no curl close ou algo assim...