-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathWaymark.php
More file actions
55 lines (46 loc) · 1.72 KB
/
Waymark.php
File metadata and controls
55 lines (46 loc) · 1.72 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/*
Plugin Name: Waymark
Plugin URI: https://www.ogis.org/waymark-wp/
Description: Mapping with WordPress made easy. With Waymark enabled, click on the "Maps" link in the sidebar to create and edit Maps. Once you are happy with your Map, copy the Waymark shortcode and add it to your content.
Version: 1.5.14
Text Domain: waymark
Author: Joe Hawes
Author URI: https://www.morehawes.ca/
License: GPLv2
*/
//Base
require_once 'inc/Waymark_Config.php';
require_once 'inc/Waymark_Types.php';
require_once 'inc/Waymark_Taxonomies.php';
require_once 'inc/Waymark_Install.php';
//Objects
require_once 'inc/Objects/Waymark_Map.php';
require_once 'inc/Objects/Waymark_Collection.php';
//Helpers
require_once 'inc/Helpers/Waymark_Helper.php';
require_once 'inc/Helpers/Waymark_Input.php';
require_once 'inc/Helpers/Waymark_GeoJSON.php';
require_once 'inc/Helpers/Waymark_Lang.php';
//Front
require_once 'inc/Waymark_Front.php';
//Admin
require_once 'inc/Waymark_Admin.php';
// Activation and uninstall hooks must be registered at file-load time,
// before plugins_loaded fires, so that WordPress can call them during activation.
Waymark_Install::init();
// Initialise config during the init action so translations are available.
// Priority -1 ensures config is ready before post types (priority 0) and
// taxonomies (priority 10) are registered on the same hook.
add_action('init', function () {
Waymark_Config::init();
}, -1);
// Instantiate plugin components once all plugins have loaded.
// Constructors only register hooks at this point; actual work (including any
// translation calls) is deferred to init or later hooks.
add_action('plugins_loaded', function () {
new Waymark_Types;
new Waymark_Taxonomies;
new Waymark_Front;
new Waymark_Admin;
});