<?php $request = wp_remote_get( ‘https://pippinsplugins.com/edd-api/products’ ); if( is_wp_error( $request ) ) { return false; // Bail early } $body = wp_remote_retrieve_body( $request ); $data = json_decode( $body ); if( ! empty( $data ) ) { echo ‘
- ‘; foreach( $data->products as $product ) { echo ‘
- ‘; echo ‘‘ . $product->info->title . ‘‘; echo ‘
‘; } echo ‘
‘; }