Skip to content

Instantly share code, notes, and snippets.

@zackkatz
Created February 10, 2017 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zackkatz/008aedb036537dc9da943cc4d4e139bb to your computer and use it in GitHub Desktop.
Save zackkatz/008aedb036537dc9da943cc4d4e139bb to your computer and use it in GitHub Desktop.
GravityView - Add AJAX actions to IP Geo Block whitelist
<?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