Disable requests to api.wordpress.org

I need to suppress outbound requests to api.wordpress.org somehow. They are taking like Best Answereconds each and take so many time to load a page when I’m logged as admin.

I’ve searched for some solutions over the web but they don’t seem to work.

1
1

You can Disable HTTP Calls by adding this in your wp-config.php

define( 'WP_HTTP_BLOCK_EXTERNAL', TRUE );

This will disable/block all external HTTP requests and will make website alot faster.

And then you can whitelist domains that you don’t want to block.

define( 'WP_ACCESSIBLE_HOSTS', 'example.com, domain.com' );

Leave a Comment