Skip to content

Instantly share code, notes, and snippets.

@erfan-ilyas
erfan-ilyas / filter-http-api.php
Created October 6, 2022 14:39
WP pre_http_request filter to disable selected premium plugins update check.
<?php
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
add_action( 'admin_init', function(){
add_filter( 'pre_http_request', 'july2122522_pre_http_request', 999, 3 );