Created
February 11, 2017 17:14
-
-
Save tokkonopapa/5aeff1aab7574fa7c1e8812b6ee68e1c to your computer and use it in GitHub Desktop.
Add GravityView actions to IP Geoblock whitelist
This file contains hidden or 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
http://pastebin.com/SkceWJ90
Topic: prevents GravityView data from loading on password protected page « WordPress.org Forums
This code should be in the
wp-content/ip-geo-api/drop-in.php
.