Skip to main content

Functions and parts

Poly_Community() gives the plugin, and each part below is one of its properties: Poly_Community()->items->create( … ). These methods are stable. The other public methods of a part are not.

PartMethods
kindsregister(), get(), of(), id(), counts()
attachmentsregister()
accessregister_rule(), register_who_can(), who_can(), can_see_item(), can_open_item(), viewer()
live_dataregister_type(), register_list()
settings_rowsadd(), add_section()
routesitem_url(), profile_url(), space_url(), home_url(), view_url()
kitsget(), view_url()
itemscreate(), get_item(), update(), delete(), data()
thing_fieldsof_kind(), values(), set_visibility()
termsregister_tree()
relationshipsregister_type()
iconsadd(), add_group(), has(), names()
uiadd(), change(), remove(), get(), items(), places()

Functions: poly_icon(), poly_the_icon(). Icons says what they draw.

The places of buttons, menus and tabs​

The places of Poly_Community()->ui and the ids of Poly Community in each, which Buttons and menus and Tabs and menus show. An item takes the keys label, icon, url, action, command, target, after, before, first, last, group, who, when, for, danger, data, slug, count, page, note, and who the words everyone, visitors, members, own, type:{slug} or a rule with roles, spaceRoles, own, can, trust, verified.

PlaceSubjectIts own ids
profile.menuprofilecopy-link, report, mute, block, suspend, edit-member, wordpress-user
space.menuspaceinvite, members, delete, leave
post.menuitemedit, pin, save, hide-pin, copy-link, mute, report, hold, delete
post.actionsitemlike, quote, reply-to, reply, share, solution, reactions, views
reply.menuitemreport, hold, delete
reply.actionsitemlike, reply, edit
topic.menuitempin, lock, move, copy-link, mute, report, delete
space.membermemberroles, owner, remove, ban
members.tabsnonediscover, friends, following
nav.footnonenone
profile.tabsprofileposts, about, friends, followers, following
space.tabsspaceposts, members, about
space.settingsspacegeneral, privacy, posts
settings.tabsnoneprofile, notifications, privacy, account
navnonehome, activity, members, spaces, profile
accountnoneprofile, settings, my-spaces, saved

A component​

Every component extends Poly_Community_Kit, which gives it setting(), view(), the_view(), register_job(), item_of(). See Building a component.