The Hub provides Lua API to access functionality it implements. This functionality is splitted in
groups, namespaces or modules, like , , , etc. Such modules (as such provided functionality) can be used withing Lua scripts by using a standart mean – .
call:
Returns a lua module (table) which provides functionality or nill in a case of an error.
Note: also registers global variable which refers to the lua module.
Note: each Lua script can be launched in a separate environment (does it use separate environment or not depends on hardware and platform). If you need to save some state use the module.
How can we help?
A premium WordPress theme with integrated Knowledge Base,
providing 24/7 community based support.