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.
| Part | Methods |
|---|---|
kinds | register(), get(), of(), id(), counts() |
attachments | register() |
access | register_rule(), register_who_can(), who_can(), can_see_item(), can_open_item(), viewer() |
live_data | register_type(), register_list() |
settings_rows | add(), add_section() |
routes | item_url(), profile_url(), space_url(), home_url(), view_url() |
kits | get(), view_url() |
items | create(), get_item(), update(), delete(), data() |
thing_fields | of_kind(), values(), set_visibility() |
terms | register_tree() |
relationships | register_type() |
icons | add(), add_group(), has(), names() |
ui | add(), 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.
| Place | Subject | Its own ids |
|---|---|---|
profile.menu | profile | copy-link, report, mute, block, suspend, edit-member, wordpress-user |
space.menu | space | invite, members, delete, leave |
post.menu | item | edit, pin, save, hide-pin, copy-link, mute, report, hold, delete |
post.actions | item | like, quote, reply-to, reply, share, solution, reactions, views |
reply.menu | item | report, hold, delete |
reply.actions | item | like, reply, edit |
topic.menu | item | pin, lock, move, copy-link, mute, report, delete |
space.member | member | roles, owner, remove, ban |
members.tabs | none | discover, friends, following |
nav.foot | none | none |
profile.tabs | profile | posts, about, friends, followers, following |
space.tabs | space | posts, members, about |
space.settings | space | general, privacy, posts |
settings.tabs | none | profile, notifications, privacy, account |
nav | none | home, activity, members, spaces, profile |
account | none | profile, 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.