boolean, * 'latitude' => float, * 'longitude' => float, * 'label' => string, * 'is_populated' => boolean * ) * * Add your filter with: * * add_filter( 'jetpack_geo_location_display', 'your_filter_function_name', 10, 2); */ class Jetpack_Geo_Location { /** * Jetpack_Geo_Location singleton instance. * * @var Jetpack_Geo_Location|null */ private static $instance; /** * Jetpack_Geo_Location instance init. */ public static function init() { if ( self::$instance === null ) { self::$instance = new Jetpack_Geo_Location(); } return self::$instance; } /** * Jetpack_Geo_Location class constructor. */ public function __construct() { add_action( 'init', array( $this, 'wordpress_init' ) ); } /** * Register support for the geo-location feature on pages and posts. Register the meta * fields managed by this plugin so that they are properly sanitized during save. */ public function wordpress_init() { // Only render location label after post content, if the theme claims to support "geo-location". if ( current_theme_supports( 'jetpack-geo-location' ) ) { _deprecated_class( 'Jetpack_Geo_Location', '14.3', '' ); } } } Jetpack_Geo_Location::init();