| 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 |
|