ABSPATH
public
mixed
ABSPATH
= __DIR__ . '/'
public
mixed
ABSPATH
= __DIR__ . '/'
public
mixed
ADMINER_ALLOW_AUTOLOGIN
= true
public
mixed
APP_DIR_PATH
= $appDirPath
public
mixed
APP_HTTP_HOST
= $httpHost
public
mixed
APP_TENANT_ID
= $this->tenant['uuid']
public
mixed
APP_TENANT_ID
= \null
public
mixed
DISABLE_AND_BLOCK_WPSERVER_UPDATES
= \false
public
mixed
HYBRIDX
= \false
public
mixed
IS_MULTITENANT
= true
public
mixed
LANDLORD_UUID
= $this->configs->config['composer']->get('extra.multitenant.uuid', null)
public
mixed
RAYDIUM_ENVIRONMENT_TYPE
= $environment
public
mixed
SITE_CONFIGS_DIR
= 'configs'
public
mixed
SRC_CONFIGS_DIR
= SRC_PATH_DIR . '/inc/configs'
public
mixed
SRC_PATH_DIR
= \dirname(__DIR__)
public
mixed
USE_STRICT_ENV_VARS
= \false
public
mixed
USE_TWIGIT
= false
For developers: WordPress debugging mode.
public
mixed
WP_DEBUG
= \false
Change this to true to enable the display of notices during development. It is strongly recommended that plugin and theme developers use WP_DEBUG in their development environments.
For information on other constants that can be used for debugging, visit the documentation.
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
Retrieves a sanitized, and optionally encrypted or modified, environment variable by name.
env(string $name[, mixed $default = null ][, bool $encrypt = false ][, bool $strtolower = false ]) : mixed
The name of the environment variable to retrieve.
Default value to return if the environment variable is not set.
Indicate if the value should be encrypted. Defaults to false.
Whether to convert the retrieved value to lowercase. Defaults to false.
The sanitized environment variable value, possibly encrypted or typecast, or transformed to lowercase if specified.
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.
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
customHeaderMiddleware(App $app) : 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.