This filter hook will be applied when forbidden uploading is detected.
Warning: The filter hook
ip-location-block-forbidden-uploadwas abolished in release 0.3.0.4 , but is replaced to
The filter hook “ip-location-block-upload-forbidden” will be applied via
apply_filters() when the request has improper capability or forbidden MIME type is detected in the uploaded files.
(array) An associative array of validation results.
|string||‘ip’||validated ip address|
|bool||‘auth’||authenticated or not|
|string||‘result’||reason of blocking (‘passed’, ‘blocked’)|
The following code snippet can handle the uploaded files.
NOTE: When you select
"mu-plugins" (ip-location-block-mu.php)as Validation timing , you should put your code snippet into
drop-in.phpin Geolocation API folder instead of
functions.php. See My custom functions in “functions.php” doesn’t work. in FAQ for detail.
Leave a Reply