-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsu-mapconnect.php
More file actions
30 lines (26 loc) · 1023 Bytes
/
tsu-mapconnect.php
File metadata and controls
30 lines (26 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/*
Plugin Name: Map Connect
Description: Map connect plugin to connect specific page data with frontend map application using the wordpress REST api.
Version: 0.0.1
Author: Marco Nagel
Author URI: https://tsu-nami.de/
Text Domain: tsu-mapconnect
Domain Path: /languages
*/
defined( 'ABSPATH' ) or die( 'Direct access not allowed!' );
//Plugin header translation strings
esc_html__( 'Map Connect', 'tsu-mapconnect' );
esc_html__( 'Map connect plugin to connect specific page data with frontend map application using the wordpress REST api.', 'tsu-mapconnect' );
//global plugin paths
define( 'TSU_MC_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'TSU_MC_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
//load textdomain
function tsumLoadInit() {
//text domain
load_plugin_textdomain('tsu-mapconnect', false, dirname(plugin_basename(__FILE__)) . '/languages/');
}
add_action( 'init', 'tsumLoadInit' );
//startup
require_once TSU_MC_PLUGIN_PATH . '/lib/TSUMCCore.php';
$tsuMapConnect = new lib\TSUMCCore();