Skip to main content

item

pb.item(type, ID, [key_value], [value])

Returns a handle to the ProBoards item object with the given ID.

Returns: Object | null - If only type and ID are passed in, this function will return a ProBoards item object or null if it doesn't exist.

ParamTypeDescription
typestringThe item's type, e.g., thread, post, user, etc.
IDstringThe item's ID.
[key_value]stringThe key of the value you want to overwrite. If left out, the value in this item will be returned.
[value]stringThe value to which you want to set this item. If key is set and this isn't set, this function will overwrite the entire item object.