\MatthiasWeb\UtilsBase

Base trait for all available classes in your plugin. The trait itself should not be directly used, use the UtilsProvider trait instead in your plugin! But you can still use the methods defined there.

Summary

Methods
Properties
Constants
debug()
getTableName()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

debug()

debug(mixed  $message,string  $methodOrFunction = null): string

Simple-to-use error_log debug log. This debug is only printed out when you define _DEBUG constant in wp-config.php

Parameters

mixed $message

The message

string $methodOrFunction

METHOD or FUNCTION

Returns

string

getTableName()

getTableName(string  $name = ''): string

Get a plugin relevant table name depending on the _DB_PREFIX constant.

Parameters

string $name

Append this name to the plugins relevant table with _{$name}.

Returns

string