getPluginConstant(self::$PLUGIN_CONST_DEBUG)) { $log = (empty($methodOrFunction) ? '' : '(' . $methodOrFunction . ')') . ': ' . (is_string($message) ? $message : json_encode($message)); $log = $this->getPluginConstant() . '_DEBUG ' . $log; error_log($log); return $log; } return ''; } /** * Get a plugin relevant table name depending on the _DB_PREFIX constant. * * @param string $name Append this name to the plugins relevant table with _{$name}. * @return string */ public function getTableName($name = '') { global $wpdb; return $wpdb->prefix . $this->getPluginConstant(self::$PLUGIN_CONST_DB_PREFIX) . (empty($name) ? '' : '_' . $name); } }