WoW API: setprinthandler

From AddOn Studio
Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API setprinthandler to API setprinthandler without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < setprinthandler

"I" iconThis function is implemented in Lua here RestrictedEnvironment.lua.

Sets a new print() output handler function.

setprinthandler(func)

Arguments[edit]

func
Function - The function that will be called with all of print(...)'s arguments when print(...) is called. This function is responsible for converting the values into a form it can present to the user.

Details[edit]

  • The default print handler, provided by blizzard, converts all arguments to strings, concatenates them separated by a single space character, and prints the resulting string to the default chat frame.

See also[edit]