Last active
February 18, 2017 19:30
-
-
Save tokkonopapa/e7421a5203a3c9fde863c9175f824e1b to your computer and use it in GitHub Desktop.
like button for theme belle
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 action for like button of theme 'belle' to IP Geo Block whitelist | |
* | |
* @link http://themecanon.com/belle/ | |
*/ | |
function my_ip_geo_block_bypass_admins( $list ) { | |
$whitelist = array( | |
'like_post', | |
); | |
return array_merge( $list, $whitelist ); | |
} | |
add_filter( 'ip-geo-block-bypass-admins', 'my_ip_geo_block_bypass_admins' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://wordpress.org/support/topic/like-button-not-working-on-pos
How to use:
When you select
"init" action hook
as "Validation timing" in "Validation rule settings" section, copy this code (without<?php
) and paste it into your theme'sfunctions.php
.When you select
"mu-plugins" (ip-geo-block-mu.php)
, save this code as a file nameddrop-in.php
and upload it towp-content/ip-geo-api/
where the geolocation APIs of IP Geo Block are placed.