wp_remote_post decode data code example
Example: wp_remote_post decode data
$response = wp_remote_post($url, array(...));
$response_body = json_decode(wp_remote_retrieve_body( $response ), true);
$response = wp_remote_post($url, array(...));
$response_body = json_decode(wp_remote_retrieve_body( $response ), true);