mainwpmainwp.php

Plugin Name: MainWP Dashboard

Description: Manage all of your WP sites, even those on different servers, from one central dashboard that runs off of your own self-hosted WordPress install.

Author: MainWP Author URI: https://mainwp.com Plugin URI: https://mainwp.com/ Text Domain: mainwp Version: 5.0.1

Constants

MAINWP_PLUGIN_FILE

MAINWP_PLUGIN_FILE = __FILE__

Define MainWP Dashboard Plugin absolute full path and filename of this file.

MAINWP_PLUGIN_DIR

MAINWP_PLUGIN_DIR = plugin_dir_path(MAINWP_PLUGIN_FILE)

Define MainWP Dashboard Plugin Directory.

MAINWP_PLUGIN_URL

MAINWP_PLUGIN_URL = plugin_dir_url(MAINWP_PLUGIN_FILE)

Define MainWP Child Dashboard URL.

MAINWP_MODULES_DIR

MAINWP_MODULES_DIR = MAINWP_PLUGIN_DIR . 'modules' . DIRECTORY_SEPARATOR

MAINWP_MODULES_URL

MAINWP_MODULES_URL = MAINWP_PLUGIN_URL . 'modules/'

MAINWP_MODULE_LOG_ENABLED

MAINWP_MODULE_LOG_ENABLED = true

MAINWP_MODULE_COST_TRACKER_ENABLED

MAINWP_MODULE_COST_TRACKER_ENABLED = true

MAINWP_MODULE_API_BACKUPS_ENABLED

MAINWP_MODULE_API_BACKUPS_ENABLED = true

Functions

mainwp_autoload()

mainwp_autoload(string  $class_name) : \require_once

Autoloader for all classes, pages & widgets

Parameters

string $class_name

Folder name class|pages|widgets.

Returns

\require_once —

$autoload_path;