ABSPATH
public
mixed
ABSPATH
= __DIR__ . '/'
public
mixed
ABSPATH
= __DIR__ . '/'
public
mixed
ABSPATH
= __DIR__ . '/'
public
mixed
ADMINER_ALLOW_AUTOLOGIN
= false
public
mixed
APP_DIR_PATH
= $appDirPath
public
mixed
APP_HTTP_HOST
= null
public
mixed
APP_MODE
= \null
public
mixed
APP_TENANT_ID
= \null
public
mixed
APP_TENANT_ID
= $this->tenant['uuid']
public
mixed
AUTH_COOKIE
= 'wpx_auth_' . COOKIEHASH
public
mixed
AUTH_KEY
= 'put your unique phrase here'
public
mixed
AUTH_SALT
= 'put your unique phrase here'
public
mixed
AUTOMATIC_UPDATER_DISABLED
= \false
public
mixed
COMPRESS_CSS
= \true
public
mixed
COMPRESS_SCRIPTS
= \true
public
mixed
COOKIEHASH
= md5(env('HOME_URL'))
public
mixed
DB_CHARSET
= 'utf8mb4'
public
mixed
DB_CHARSET
= env('DB_CHARSET', 'utf8mb4')
public
mixed
DB_COLLATE
= ''
public
mixed
DB_COLLATE
= env('DB_COLLATE', '')
public
mixed
DB_HOST
= 'localhost'
public
mixed
DB_HOST
= env('DB_HOST', 'localhost')
public
mixed
DB_NAME
= 'your_database_name'
public
mixed
DB_NAME
= env('DB_NAME')
public
mixed
DB_PASSWORD
= 'your_password'
public
mixed
DB_PASSWORD
= env('DB_PASSWORD')
public
mixed
DB_USER
= 'your_username'
public
mixed
DB_USER
= env('DB_USER')
public
mixed
DISABLE_WP_ORG_UPDATES
= \false
public
mixed
DISALLOW_FILE_EDIT
= \true
public
mixed
DISALLOW_INDEXING
= \true
public
mixed
DISALLOW_UNFILTERED_HTML
= \true
public
mixed
EMPTY_TRASH_DAYS
= 30
public
mixed
ENFORCE_GZIP
= \true
public
mixed
FORCE_SSL_ADMIN
= \true
public
mixed
FS_CHMOD_DIR
= 0755
public
mixed
FS_CHMOD_FILE
= 0644
public
mixed
HASH_TENANT_ID
= $composer_config->get('extra.multitenant.hash', false)
public
mixed
HYBRIDX
= \false
public
mixed
ISOLATED_TENANT
= true
public
mixed
LANDLORD_UUID
= $this->configs->config['composer']->get('extra.multitenant.uuid', null)
public
mixed
LOGGED_IN_COOKIE
= 'wpx_logged_in_' . COOKIEHASH
public
mixed
LOGGED_IN_KEY
= 'put your unique phrase here'
public
mixed
LOGGED_IN_SALT
= 'put your unique phrase here'
public
mixed
NONCE_KEY
= 'put your unique phrase here'
public
mixed
NONCE_SALT
= 'put your unique phrase here'
public
mixed
PASS_COOKIE
= 'wpx_pass_' . COOKIEHASH
public
mixed
PRIVATE_DIR_PATH
= APP_DIR_PATH . '/private'
public
mixed
RECOVERY_MODE_COOKIE
= 'wpx_rec_' . COOKIEHASH
public
mixed
SAVEQUERIES
= \true
public
mixed
SCRIPT_DEBUG
= \true
public
mixed
SECURE_AUTH_COOKIE
= 'wpx_sec_' . COOKIEHASH
public
mixed
SECURE_AUTH_KEY
= 'put your unique phrase here'
public
mixed
SECURE_AUTH_SALT
= 'put your unique phrase here'
public
mixed
SHORTINIT
= true
public
mixed
SRC_CONFIGS_DIR
= SRC_PATH_DIR . '/inc/configs'
public
mixed
SRC_PATH_DIR
= \dirname(__DIR__)
public
mixed
TENANT_CONFIGS_PATH
= $this->configs->getConfigsDir() . TENANT_CONFIG_DIR . '/' . $this->tenant['uuid']
public
mixed
TEST_COOKIE
= md5('wpx_test_cookie' . env('HOME_URL'))
public
mixed
USE_STRICT_ENV_VARS
= \false
public
mixed
USER_COOKIE
= 'wpx_user_' . COOKIEHASH
public
mixed
WP_AUTO_UPDATE_CORE
= \true
public
mixed
WP_CACHE
= \true
public
mixed
WP_DEBUG
= \false
public
mixed
WP_DEBUG_DISPLAY
= \false
public
mixed
WP_DEBUG_LOG
= \false
public
mixed
WP_DISABLE_FATAL_ERROR_HANDLER
= \false
public
mixed
WP_MEMORY_LIMIT
= '512M'
public
mixed
WP_POST_REVISIONS
= 5
public
mixed
WP_USE_THEMES
= \true
public
mixed
WPINC
= 'wp-includes'
The Asset url.
asset(string $asset[, null|string $path = null ]) : string
path to the asset like: "/images/thing.png"
The Asset url only.
assetUrl([null|string $path = null ]) : string
Retrieve an environment variable with optional sanitization, encryption, and normalization.
env(string $name[, mixed $default = null ][, bool $encrypt = false ][, bool $strtolower = false ][, bool $sysOverride = true ][, bool $syncGlobals = true ]) : mixed
This helper unifies three possible sources of environment values:
getenv()
)..env
files).Precedence rules depend on $sysOverride
:
When $sysOverride = true
(default):
System env values always override $_ENV/.env values if present.
Order of resolution: getenv() > $_ENV > $default
When $sysOverride = false
:
$_ENV/.env values take priority over system envs.
Order of resolution: $_ENV > getenv() > $default
After resolving the raw value, it is passed to the Env instance for whitelist enforcement, optional encryption, normalization, and strtolower().
Notes:
""
is treated as a set value (no fallback).$syncGlobals
is true, the resolved value is written back to both $_ENV
and getenv()
to keep globals consistent. Disable this in tests or when side effects are undesirable.The name of the environment variable to retrieve.
Value returned if not set in either getenv() or $_ENV.
Whether to encrypt the retrieved value (default false).
Whether to force lowercase output (default false).
Whether system getenv() should override $_ENV values. Default true (12-factor style: system > .env).
Whether to sync resolved values back to global env via putenv(). Default true.
The resolved, sanitized environment variable value, or $default if not found.
appOptionsDir() : string|null
Retrieves configuration data using dot notation.
configs() : mixed
This function allows easy access to nested configuration data through dot notation syntax.
The full configuration object is returned.
Cleans up sensitive environment variables.
cleanSensitiveEnv(array<string|int, mixed> $sensitives) : void
This function removes specified environment variables from the $_ENV superglobal and the environment to help secure sensitive information.
An array of environment variable names to be cleaned up.
localConfigsDir() : string
Determines if the application is configured to operate in multi-tenant mode.
isMultitenantApp() : bool
This is based on the presence and value of the IS_MULTITENANT
constant.
If IS_MULTITENANT
is defined and set to true
, the application is
considered to be in multi-tenant mode.
Returns true
if the application is in multi-tenant mode, otherwise false
.
getWpframeworkHttpEnv() : string|null
Sets the upload directory to a tenant-specific location.
setMultitenantUploadDirectory(array<string|int, mixed> $dir) : array<string|int, mixed|string>
This function modifies the default WordPress upload directory paths to store tenant-specific uploads in a separate folder based on the tenant ID. It ensures that each tenant's uploads are organized and stored in an isolated directory.
The array containing the current upload directory's path and URL.
pluginAccessManager() : PluginControl
Custom admin footer text.
frameworkFooterLabel() : string
The formatted footer text.
frameworkCurrentThemeInfo() : array<string|int, bool|string>
exitWithThemeError(array<string|int, mixed> $themeInfo) : void
Logs a message with the specified level and an optional log file.
logMessage(string $message[, string $level = 'info' ][, array<string|int, mixed> $context = [] ][, null|string $logFile = null ]) : void
The log message.
The log level (e.g., 'info', 'error', 'debug', etc.).
Optional context data for the log message.
Optional log file to use. If null, the default or fallback will be used.
logWithStackTrace() : void
toMillisecond(float $seconds) : mixed
Retrieves the Twig configuration file path.
twigit() : null|Twigit
This function allows users to define their own Twig configuration file. If a custom configuration file exists at the specified path, it will be used. Otherwise, the default framework Twig configuration file is returned.
The file path to the Twig configuration file.
Initializes and returns a Twig environment instance.
twig([array<string|int, mixed> $options = [] ][, array<string|int, mixed> $templates = [] ]) : Twigit
This function configures the Twig environment using the specified templates directory path and optional environment settings.
Twig environment options can be passed as an associative array to customize the behavior of the environment. Refer to the Twig documentation for a full list of available options.
The initialized Twig environment instance.
Check if Raydium is disabled.
isRaydiumDisabled() : bool
Returns true if Raydium is disabled, false otherwise
getAppThemeDir() : string|null
custom_error_handler(mixed $errno, mixed $errstr, mixed $errfile, mixed $errline) : mixed