PluginProbe
Waymark / trunk
Waymark vtrunk
1.6.5 1.6.4 1.6.2 1.6.3 1.6.0 1.5.16 trunk 1.4.3 1.5.0 1.5.1 1.5.10 1.5.11 1.5.14 1.5.15 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9
waymark / Waymark.php

Waymark.php in Waymark trunk, at Waymark.php

56 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 Plugin Name: Waymark
5 Plugin URI: https://www.ogis.org/waymark-wp/
6 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.
7 Version: 1.6.5
8 Text Domain: waymark
9 Author: Joe Hawes
10 Author URI: https://www.morehawes.ca/
11 License: GPLv2
12 */
13
14 //Base
15 require_once 'inc/Waymark_Config.php';
16 require_once 'inc/Waymark_Types.php';
17 require_once 'inc/Waymark_Taxonomies.php';
18 require_once 'inc/Waymark_Install.php';
19
20 //Objects
21 require_once 'inc/Objects/Waymark_Map.php';
22 require_once 'inc/Objects/Waymark_Collection.php';
23
24 //Helpers
25 require_once 'inc/Helpers/Waymark_Helper.php';
26 require_once 'inc/Helpers/Waymark_Input.php';
27 require_once 'inc/Helpers/Waymark_GeoJSON.php';
28 require_once 'inc/Helpers/Waymark_Lang.php';
29
30 //Front
31 require_once 'inc/Waymark_Front.php';
32
33 //Admin
34 require_once 'inc/Waymark_Admin.php';
35
36 // Activation and uninstall hooks must be registered at file-load time,
37 // before plugins_loaded fires, so that WordPress can call them during activation.
38 Waymark_Install::init();
39
40 // Initialise config during the init action so translations are available.
41 // Priority -1 ensures config is ready before post types (priority 0) and
42 // taxonomies (priority 10) are registered on the same hook.
43 add_action('init', function () {
44 Waymark_Config::init();
45 }, -1);
46
47 // Instantiate plugin components once all plugins have loaded.
48 // Constructors only register hooks at this point; actual work (including any
49 // translation calls) is deferred to init or later hooks.
50 add_action('plugins_loaded', function () {
51 new Waymark_Types;
52 new Waymark_Taxonomies;
53 new Waymark_Front;
54 new Waymark_Admin;
55 });
56