$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 );