define_constants(); // Actions add_action( 'sp_venue_add_openstreetmap', array( $this, 'add_venue_openstreetmap' ), 10, 3 ); add_action( 'sp_venue_edit_openstreetmap', array( $this, 'edit_venue_openstreetmap' ), 10, 3 ); add_action( 'sp_venue_show_openstreetmap', array( $this, 'show_venue_openstreetmap' ), 10, 4 ); // Filters //add_filter( 'sportspress_openstreetmap', array( $this, 'add_options' ) ); //add_filter( 'sportspress_equation_alter', array( $this, 'alter_equation' ), 10, 2 ); } /** * Define constants. */ private function define_constants() { if ( !defined( 'SP_OPENSTREETMAP_VERSION' ) ) define( 'SP_OPENSTREETMAP_VERSION', '2.7' ); if ( !defined( 'SP_OPENSTREETMAP_URL' ) ) define( 'SP_OPENSTREETMAP_URL', plugin_dir_url( __FILE__ ) ); if ( !defined( 'SP_OPENSTREETMAP_DIR' ) ) define( 'SP_OPENSTREETMAP_DIR', plugin_dir_path( __FILE__ ) ); } /** * Integrate OpenStreetMap (Add Venue) * * @return mix */ public function add_venue_openstreetmap( $latitude, $longitude, $address ) { ?>