ABSPATH
public
mixed
ABSPATH
= __DIR__ . '/'
public
mixed
ABSPATH
= __DIR__ . '/'
public
mixed
ABSPATH
= __DIR__ . '/'
public
mixed
ALLOW_MULTITENANT
= \false
public
mixed
APP_DIR_PATH
= $appDirPath
public
mixed
APP_HTTP_HOST
= $httpHost
public
mixed
APP_HTTP_HOST
= $this->tenant->domain
public
mixed
APP_TENANT_ID
= \null
public
mixed
APP_TENANT_ID
= md5($this->tenant->uuid)
public
mixed
CONCATENATE_SCRIPTS
= \false
public
mixed
DISABLE_AND_BLOCK_WPSERVER_UPDATES
= \false
public
mixed
DISALLOW_FILE_EDIT
= \true
public
mixed
DISALLOW_FILE_MODS
= \true
public
mixed
EMPTY_TRASH_DAYS
= 10
public
mixed
IS_MULTITENANT
= true
public
mixed
LANDLORD_UUID
= \null
public
mixed
RAYDIUM_ENVIRONMENT_TYPE
= $environment
public
mixed
REQUIRE_TENANT_CONFIG
= \false
public
mixed
SAVEQUERIES
= \true
public
mixed
SCRIPT_DEBUG
= \false
public
mixed
SITE_CONFIGS_DIR
= 'configs'
public
mixed
TENANCY_WEB_ROOT
= 'public'
public
mixed
USE_STRICT_ENV_VARS
= \false
public
mixed
WP_CRON_LOCK_TIMEOUT
= 120
public
mixed
WP_DEBUG
= \false
public
mixed
WP_DEBUG
= \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_DEBUG_DISPLAY
= \false
public
mixed
WP_DEBUG_LOG
= \false
public
mixed
WP_DISABLE_FATAL_ERROR_HANDLER
= \true
The Asset url.
asset(string $asset[, null|string $path = null ]) : string
You can configure the asset URL by setting the ASSET_URL in your .env Or optionally in the main config file.
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.
envWhitelist() : array<string|int, mixed>
siteConfigsDir() : string|null
Retrieves configuration data using dot notation.
config([null|string $key = null ][, mixed $default = null ]) : mixed
This function allows easy access to nested configuration data through dot notation syntax. When a specific dot notation key is provided, it returns the associated value from the configuration. If no key is specified, the full configuration object is returned.
Optional. The dot notation key to retrieve the data for. If null, the entire configuration object is returned. Default null.
Optional. The default value to return if the specified key is not found. Default null.
The value associated with the specified key or the default value if the key is not found. If no key is provided (null), the full configuration object is returned.
Gets hash of given string.
envHash(string $data[, string $secretkey = null ][, string $algo = 'sha256' ]) : false|string
If no secret key is provided we will use the SECURE_AUTH_KEY wp key.
Message to be hashed.
Secret key used for generating the HMAC variant.
Name of selected hashing algorithm (i.e. "md5", "sha256", "haval160,4", etc..)
Returns a string containing the calculated hash value.
Basic Sanitize and prepare for a string input for safe usage in the application.
wpSanitize(string $input) : string
This function sanitizes the input by removing leading/trailing whitespace, stripping HTML and PHP tags, converting special characters to HTML entities, and removing potentially dangerous characters for security.
The input string to sanitize.
The sanitized input ready for safe usage within the application.
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.
Retrieves all packages listed in the 'require' section of the composer.json file.
get_packages(string $app_path) : array<string|int, mixed>
The path to the application root directory.
An array of required packages, or an empty array if the file doesn't exist or on error.
_configsDir() : 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 ALLOW_MULTITENANT
constant.
If ALLOW_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(AppInit $app) : void