cURL request to plugin repository fails 403

Thanks to the WordPress forums someone answered that this only works via PHP if you set the UserAgent to a browser. $ua=”Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.A.B.C Safari/525.13″; curl_setopt( $cd, CURLOPT_USERAGENT, $ua);

Adding a banner to the install dialogue of a custom plugin

Since no one was able to answer my question, I will do so myself since I found the answer this morning. When executing the API call for fetching plugin information, the response object must contain a banners array: $response->banners = [ ‘low’ => ‘http://yourdomain.com/banner_772x250.png’, ‘high’ => ‘http://yourdomain.com/banner_1544x500.png’, ]; Images need to be called “low” (exactly … Read more