Permalink
Browse files

Add `wpgeo_check_domain` filter.

  • Loading branch information...
benhuson committed Jun 14, 2016
1 parent 4f57a7e commit 065e66abda65aeee000ed52da40ecaa563f27b3c
Showing with 3 additions and 1 deletion.
  1. +3 −1 includes/functions.php
View
@@ -35,6 +35,8 @@ function wpgeo_css_dimension( $str = false ) {
* If it doesn't match we can prevent maps from showing as the Google API Key will not be valid.
* This prevent warnings if the site is accessed through Google cache.
*
* Can be overriden via the `wpgeo_check_domain` filter.
*
* @return boolean
*/
function wpgeo_check_domain() {
@@ -48,7 +50,7 @@ function wpgeo_check_domain() {
// Strip blog to non-SSL to compare
$blog = str_replace( 'https:', 'http:', $blog );
return $host == $blog;
return apply_filters( 'wpgeo_check_domain', $host == $blog );
}

0 comments on commit 065e66a

Please sign in to comment.