-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
44 lines (40 loc) · 1.4 KB
/
index.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
<?php
/**
* Kommunen
*
* @package nostrasponte_municipality
* @author Mike Kühnapfel <mailto:[email protected]>
* @copyright 2020 Mike Kühnapfel
* @license GPL-3.0-or-later
* @version 1.3.1
*
* @wordpress-plugin
* Plugin Name: Kommunen
* Plugin URI: https://github.com/veyxos/nostrasponte-municipality
* Description: Fügt die Taxanomy „Kommunen“ (municipality) zu Posts hinzu
* Version: 1.3.1
* Requires at least: 5.0
* Requires PHP: 7.2
* Author: Mike Kühnapfel
* Author URI: mailto:[email protected]
* License: GNU General Public License 3.0 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0
* Text Domain: nostrasponte_municipality
*/
if (!function_exists('add_action')) {
die("Hi there! I'm just a plugin not much I can do when called directly.");
}
// Includes
include('includes/activate.php');
include('includes/init.php');
include('includes/admin/init.php');
include('process/save-term.php');
include( 'includes/admin/forms.php' );
// Hooks
register_activation_hook(__FILE__, 'nsm_activate_plugin');
add_action('init', 'nsm_init', 0);
add_action('admin_init', 'nsm_admin_init');
add_action('saved_municipality', 'nsm_save_term_admin', 10, 3);
add_action('municipality_add_form_fields', 'nsm_add_form_fields_new', 10, 1);
add_action('municipality_edit_form_fields', 'nsm_add_form_fields_edit', 10, 2);
add_action('admin_footer', 'nsm_javascript');