Created
February 10, 2017 00:44
-
-
Save zackkatz/008aedb036537dc9da943cc4d4e139bb to your computer and use it in GitHub Desktop.
GravityView - Add AJAX actions to IP Geo Block whitelist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add GravityView actions to IP Geoblock whitelist | |
*/ | |
function gravityview_ip_geoblock_bypass_admins( $queries ) { | |
$whitelist = array( | |
'gv_datatables_data', | |
'gv_note_add', | |
'gv_delete_notes', | |
'rg_delete_file', | |
); | |
return array_merge( $queries, $whitelist ); | |
} | |
add_filter( 'ip-geo-block-bypass-admins', 'gravityview_ip_geoblock_bypass_admins' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment