Skip to content

Instantly share code, notes, and snippets.

@ymauray
Created November 23, 2016 12:00
Show Gist options
  • Save ymauray/365d21a2d04c44cbe326ac7c0b7e8ffb to your computer and use it in GitHub Desktop.
Save ymauray/365d21a2d04c44cbe326ac7c0b7e8ffb to your computer and use it in GitHub Desktop.
<?php
$api_request = 'http://.......';
$api_response = wp_remote_get( $api_request );
$api_data = json_decode( wp_remote_retrieve_body( $api_response ), true );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment