Untitled

mail@pastecode.io avatar
unknown
php
2 months ago
224 B
6
Indexable
Never
add_filter( 'pre_http_request', 'pass_or_reject_request', 10, 3 );

function pass_or_reject_request( $preempt, $parsed_args, $url ){
	if( strpos($url, 'woocommerce') ==false   ){
		return $preempt;		
	}
	return "blocked!";
}
Leave a Comment