public function __construct($type, $main, $permission_cap = NULL, $caps_mapping = NULL)
 {
     self::$META_DATA_KEY = WPFront_User_Role_Editor::PLUGIN_SLUG . '-role-permission';
     self::$POSTS_COLUMN_KEY = WPFront_User_Role_Editor::PLUGIN_SLUG . '-role-permission-column-key';
     parent::__construct($main);
     $this->type = $type;
     if ($permission_cap === NULL) {
         $permission_cap = 'edit_' . $this->type . 's_role_permissions';
     }
     $this->permission_cap = $permission_cap;
     if ($caps_mapping === NULL) {
         $caps_mapping = (object) array('edit_posts' => 'edit_' . $this->type . 's', 'edit_published_posts' => 'edit_published_' . $this->type . 's', 'edit_others_posts' => 'edit_others_' . $this->type . 's', 'edit_private_posts' => 'edit_private_' . $this->type . 's', 'delete_posts' => 'delete_' . $this->type . 's', 'delete_published_posts' => 'delete_published_' . $this->type . 's', 'delete_others_posts' => 'delete_others_' . $this->type . 's', 'delete_private_posts' => 'delete_private_' . $this->type . 's');
     }
     $caps_mapping->read = 'read';
     $this->caps_mapping = $caps_mapping;
     self::$extended_post_types[$type] = (object) array('permission_cap' => $permission_cap, 'caps_mapping' => $caps_mapping);
     add_action('add_meta_boxes', array($this, 'add_meta_boxes'));
     add_action('save_post', array($this, 'save_post'), 10, 1);
     add_filter('posts_where', array($this, 'posts_where'), 10, 2);
     add_filter('posts_join', array($this, 'posts_join'), 10, 2);
     add_action('admin_enqueue_scripts', array($this, 'enqueue_scripts'));
     add_filter('user_has_cap', array($this, 'user_has_cap'), 10, 3);
     add_filter('manage_' . $type . 's_columns', array($this, 'manage_posts_columns'), 10, 1);
     add_filter('manage_' . $type . 's_custom_column', array($this, 'manage_posts_columns_content'), 10, 3);
 }
 public function set_help_tab()
 {
     if ($this->controller === NULL) {
         parent::set_help_tab();
     } else {
         $this->controller[0]->set_help_tab();
     }
 }
 public function __construct($main)
 {
     parent::__construct($main);
     add_filter('wpfront_ure_custom_post_type_upgrade_message', array($this, 'custom_post_type_upgrade_message'));
     add_filter('wpfront_ure_custom_post_type_permission_settings_list', array($this, 'custom_post_type_permission_settings_list'));
     add_action('wpfront_ure_update_customize_permission_custom_post_types', array($this, 'update_customize_permission_custom_post_types'), 10, 2);
     add_action('registered_post_type', array($this, 'registered_post_type'), 10, 2);
 }
 function __construct($main)
 {
     parent::__construct($main);
     add_action('admin_init', array($this, 'admin_init'), 1);
     add_action('admin_init', array($this, 'lock_menus'), 999999);
     //add_action('admin_menu', array($this, 'lock_menus'), 999999);
     add_filter('parent_file', array($this, 'lock_menus'), 999999, 1);
     add_action('admin_enqueue_scripts', array($this, 'enqueue_scripts'));
     add_filter('manage_roles_columns', array($this, 'manage_roles_columns'), 10, 1);
     add_filter('manage_roles_custom_column', array($this, 'manage_roles_custom_column'), 10, 3);
     add_filter('role_row_actions', array($this, 'role_row_actions'), 10, 2);
 }
 function __construct($main)
 {
     parent::__construct($main);
     $this->ajax_register('wp_ajax_wpfront_user_role_editor_export_roles', array($this, 'export_roles_callback'));
 }
 function __construct($main)
 {
     parent::__construct($main);
 }
 public function get_bulk_edit_url()
 {
     return parent::get_bulk_edit_url() . '&bulk-edit-type=extended-permissions';
 }
 public function __construct($main)
 {
     parent::__construct($main);
     add_action('plugins_loaded', array($this, 'plugins_loaded'));
 }