mainwp/classclass-mainwp-system.php

MainWP System.

Classes

MainWP_System Class MainWP_System

Constants

MAINWP_VIEW_PER_SITE

MAINWP_VIEW_PER_SITE = 1

MAINWP_VIEW_PER_PLUGIN_THEME

MAINWP_VIEW_PER_PLUGIN_THEME = 0

MAINWP_VIEW_PER_GROUP

MAINWP_VIEW_PER_GROUP = 2

MAINWP_VERSION

MAINWP_VERSION = $this->current_version

Defines MainWP Version.

MAINWP_DEMO_MODE

MAINWP_DEMO_MODE = true

Functions

mainwp_current_user_have_right()

mainwp_current_user_have_right(string  $cap_type = '', string  $cap = '') : boolean

Method mainwp_current_user_have_right()

Check permission level by hook mainwp_currentusercan of Team Control extension.

Parameters

string $cap_type

group or type of capabilities.

string $cap

capabilities for current user.

Returns

boolean —

true|false