UtilsProvider uses trait:short
Let our package act as own "plugin".
Table of Contents
Methods
- debug() : string
- Simple-to-use error_log debug log. This debug is only printed out when you define _DEBUG constant in wp-config.php
- getPluginConstantPrefix() : string
- Get the prefix of this package so we can utils package natively.
- getTableName() : string
- Get a plugin relevant table name depending on the _DB_PREFIX constant.
- setupConstants() : mixed
- Make sure the DEVOWL_MULTILINGUAL constants are available.
Methods
debug()
Simple-to-use error_log debug log. This debug is only printed out when you define _DEBUG constant in wp-config.php
public
debug(mixed $message[, string $methodOrFunction = null ]) : string
Parameters
- $message : mixed
-
The message
- $methodOrFunction : string = null
-
METHOD or FUNCTION
Return values
stringgetPluginConstantPrefix()
Get the prefix of this package so we can utils package natively.
public
getPluginConstantPrefix() : string
Return values
stringgetTableName()
Get a plugin relevant table name depending on the _DB_PREFIX constant.
public
getTableName([string $name = '' ]) : string
Parameters
- $name : string = ''
-
Append this name to the plugins relevant table with _{$name}.
Return values
stringsetupConstants()
Make sure the DEVOWL_MULTILINGUAL constants are available.
public
static setupConstants() : mixed