PluginProbe
Multiple Roles / 1.3.6
Multiple Roles v1.3.6
trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8
multiple-roles / multiple-roles.php

multiple-roles.php in Multiple Roles 1.3.6, at multiple-roles.php

31 lines 980 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 Plugin Name: Multiple Roles
4 Description: Allow users to have multiple roles on one site.
5 Version: 1.3.5
6 Author: Christian Neumann
7 Author URI: https://utopicode.de
8 Plugin URI: https://wordpress.org/plugins/multiple-roles/
9 Github URI: https://github.com/chrneumann/multiple-roles
10 Text Domain: multiple-roles
11 */
12
13 define( 'MDMR_PATH', plugin_dir_path( __FILE__ ) );
14 define( 'MDMR_URL', plugin_dir_url( __FILE__ ) );
15
16 /**
17 * Load files and add hooks to get things rolling.
18 */
19 require_once MDMR_PATH . 'model.php';
20 require_once MDMR_PATH . 'controllers/checklist.php';
21 require_once MDMR_PATH . 'controllers/column.php';
22
23 $mdmr_model = new MDMR_Model();
24 $mdmr_checklist = new MDMR_Checklist_Controller( $mdmr_model );
25 $mdmr_column = new MDMR_Column_Controller( $mdmr_model );
26
27 add_action( 'init', 'mdmr_load_translation' );
28 function mdmr_load_translation() {
29 load_plugin_textdomain( 'multiple-roles', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
30 }
31