-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWPEvents.php
37 lines (26 loc) · 961 Bytes
/
WPEvents.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
<?php
/*
Plugin Name: WP Events
Plugin URI: https://github.com/matiere-noire/
Description: Gestion des événements
Author: Matière Noire
Version: 1.5.2
Author URI: https://github.com/matiere-noire/
Text Domain: mn-wp-events
Domain Path: /languages
*/
namespace Events;
use Events\Classes\WPQueryEventsFilters;
require_once plugin_dir_path(__FILE__) . '/functions.php';
if (file_exists(plugin_dir_path(__FILE__) . '/vendor/autoload.php')) {
require plugin_dir_path(__FILE__) . '/vendor/autoload.php';
}
$wpevents = new WPEvents();
$wpevents->initialize(__FILE__);
$WPQueryEventsFilters = new WPQueryEventsFilters();
$WPQueryEventsFilters->init();
register_activation_hook(__FILE__, array( $wpevents, 'plugin_activate' ));
add_action( 'plugins_loaded', 'Events\wp_event_load_plugin_textdomain' );
function wp_event_load_plugin_textdomain() {
load_plugin_textdomain( 'mn-wp-events', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
}