generated from Monogramm/wp-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwp-plugin-advanced-leaflet.php
54 lines (46 loc) · 1.55 KB
/
wp-plugin-advanced-leaflet.php
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
<?php
/**
* Plugin Name: WP Plugin Advanced Leaflet
* Version: 0.1.0
* Plugin URI: https://github.com/Monogramm/wp-plugin-advanced-leaflet/
* Description: WP Plugin Advanced Leaflet with Unit Tests and docker env
* Author: Monogramm
* Author URI: http://www.monogramm.io/
* Requires at least: 5.2
* Tested up to: 5.6
*
* Text Domain: wp-plugin-advanced-leaflet
* Domain Path: /lang/
*
* @package WordPress
* @author Monogramm
* @since 0.1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
die;
}
// Load plugin class files.
require_once 'includes/class-wp-plugin-advanced-leaflet.php';
require_once 'includes/class-wp-plugin-advanced-leaflet-settings.php';
require_once 'includes/class-wp-plugin-advanced-leaflet-shortcodes.php';
// Load plugin libraries.
require_once 'includes/lib/class-wp-plugin-advanced-leaflet-admin-api.php';
require_once 'includes/lib/class-wp-plugin-advanced-leaflet-post-type.php';
require_once 'includes/lib/class-wp-plugin-advanced-leaflet-taxonomy.php';
/**
* Returns the main instance of WP_Plugin_Advanced_Leaflet to prevent the need to use globals.
*
* @since 0.1.0
* @return object WP_Plugin_Advanced_Leaflet
*/
function wp_plugin_advanced_leaflet() {
$instance = WP_Plugin_Advanced_Leaflet::instance( __FILE__, '0.1.0' );
if ( null === $instance->settings ) {
$instance->settings = WP_Plugin_Advanced_Leaflet_Settings::instance( $instance );
}
if ( null === $instance->shortcodes_api ) {
$instance->shortcodes_api = WP_Plugin_Advanced_Leaflet_ShortCodes::instance( $instance );
}
return $instance;
}
wp_plugin_advanced_leaflet();