Open cpmrohit opened 3 years ago
removed cURL functionality and replced it with
$response = wp_remote_get($url);
if( is_wp_error( $response ) ) {
return false;
}
$body = wp_remote_retrieve_body( $response );
$addons = json_decode( $body, true );
Remove cURL being used in to retreive plugin addons data. Instead use https://developer.wordpress.org/plugins/http-api/