Abilities 7
clanbite-social/create-commentclanbite-social-kitAdds a comment on a post (same as REST).clanbite-social/create-postclanbite-social-kitCreates a feed post with the same fields and validation as the authenticated REST composer.clanbite-social/public-groupclanbite-social-kitReturns formatted metadata for a published Social Kit group by ID (no-op when groups are disabled).clanbite-social/reaction-typesclanbite-social-kitReturns enabled reaction type definitions and feature flags (same as the public REST endpoint).clanbite-social/toggle-comment-reactionclanbite-social-kitToggles a reaction on a comment (same as REST).clanbite-social/toggle-post-reactionclanbite-social-kitToggles a reaction on a post (same as REST).clanbite-social/vote-pollclanbite-social-kitCasts a vote on a post poll (same rules as REST; one vote per user).
Blocks 9
clanbite-social/group-create-formclanbite-social-kitRender a form for creating new groups.clanbite-social/group-profile-headerclanbite-social-kitCover, avatar, and group title (Clanbite + Social Kit).clanbite-social/group-profile-navclanbite-social-kitHome tab and registered group subpages (events, settings, …).clanbite-social/player-add-friendclanbite-social-kitFriend controls for logged-in visitors: Add friend, Friendship pending after a request, Unfriend when accepted, or a link to Friends settings when the profile owner sent you a request. Hidden if requests from you are ignored.clanbite-social/player-at-tagclanbite-social-kitDisplays the player’s @ handle (WordPress nicename) for profiles and player loops. Supports typography controls.clanbite-social/player-friends-countclanbite-social-kitShows how many friends a player has. Optional rich-text prefix and suffix. Respects the friends feature setting.clanbite-social/player-post-countclanbite-social-kitShows how many status posts a player has (respects feed visibility). Optional rich-text prefix and suffix.clanbite-social/social-composerclanbite-social-kitWrite a status update (home, profile, or team). Team: admins only; others see nothing. Pair with the Social feed block or use on its own.clanbite-social/social-feedclanbite-social-kitPlayer activity feed (friends, profile, or team) powered by the Social Kit REST API.
Classes 32
Activity_Loggerclanbite-social-kitWrites user activity posts from extension hooks.Auto_Membership_Syncclanbite-social-kitIdempotent membership application for configured global lists.Clanbite_Group_Integrationclanbite-social-kitRegisters filters and the virtual clanbite-group-profile-header template part for FSE.Componentsclanbite-social-kitRegisters reactions and @mentions as components, so Forums and other extensions ask the registry for them (clanbite_has_component( 'reactions' ), clanbite_render_component( 'reaction-summary', … )) instead of calling Social Kit's functions directly. A site without Social Kit simply has none of these components.Data_Accessclanbite-social-kitLow-level data access (no HTTP).Feed_Contextclanbite-social-kitImmutable definition of a feed context (home, profile, team, group, or one registered by a third party).Feed_Context_Registryclanbite-social-kitWhere every feed context lives, bundled or third-party.Feed_Deep_Linksclanbite-social-kitCentral definitions for cp-social-* URL fragments and DOM ids used by the feed and notifications.Feed_Permissionsclanbite-social-kitStatic permission checks shared by the REST controller and the bundled feed contexts.Friend_Request_Notificationsclanbite-social-kitRegisters notification type and sends on new pending requests.Group_Data_Accessclanbite-social-kitCRUD and membership queries for groups using the cp_group CPT.Group_Extensionclanbite-social-kitRegisters group CPT, handles form submissions, and manages templates.Group_Post_Typeclanbite-social-kitRegisters the cp_group CPT and related meta.Group_Rest_Controllerclanbite-social-kitREST endpoints for groups.Link_Previewclanbite-social-kitFetches link metadata for REST output (best-effort, cached only in DB row).Mention_Pickerclanbite-social-kitLoads assets/js/clanbite-mentions-picker.js for signed-in members when @mentions are on.Mentionsclanbite-social-kitMentions handler.Player_Account_Settingsclanbite-social-kitHooks into Clanbite player settings when the Players extension is active.Player_Cardclanbite-social-kitGET clanbite-social-kit/v1/player-card/{id} returns ready-made card markup (the shared avatar with its XP ring and rank badge, the name, the rank and the progress), and assets/js/clanbite-player-card.js shows it next to any a.clanbite-mention–user link the pointer rests on. The script is loaded on every front-end page while @mentions are on; it does nothing until a mention is hovered.Player_Friends_Settingsclanbite-social-kitFriends section for Clanbite player settings.Player_Privacy_Settingsclanbite-social-kitPrivacy section for Clanbite player settings.Pluginclanbite-social-kitMain plugin class (singleton).Reaction_Markupclanbite-social-kitThe one place the reaction chips and the reaction picker are written.Reaction_Registryclanbite-social-kitReaction slug definitions and helpers.Reactionsclanbite-social-kitReactions for anything, owned by Social Kit.Rest_Controllerclanbite-social-kitRegisters and handles REST routes for Social Kit.Schemaclanbite-social-kitSchema creation and version option.Social_Kitclanbite-social-kitOfficial Clanbite extension (cp_social_kit) shipped in this plugin; requires Players (cp_players).Social_Kit_Abilitiesclanbite-social-kitRegisters Social Kit abilities under the core Abilities category.Social_Kit_Adminclanbite-social-kitUnified Clanbite admin settings for Social Kit (reads/writes legacy option keys below).Social_Media_Uploadclanbite-social-kitHandles multipart uploads for the social feed composer.Team_Mention_Settingsclanbite-social-kitAdds mention settings to the team manage form.
Components 4
mentionsclanbite-social-kitTurns @username into profile links (respecting each member's privacy setting) and loads the @ picker for editors.reaction-pickerclanbite-social-kitThe popover of reactions a member can choose from.reaction-summaryclanbite-social-kitThe reaction chips of one object, each with a tooltip of who reacted.reactionsclanbite-social-kitReactions for any registered object type: the toggle API, the REST route and the browser client.
Database tables 7
{prefix}cp_social_comment_reactionsclanbite-social-kit{prefix}cp_social_commentsclanbite-social-kit{prefix}cp_social_friendshipsclanbite-social-kit{prefix}cp_social_post_mediaclanbite-social-kit{prefix}cp_social_post_poll_votesclanbite-social-kit{prefix}cp_social_postsclanbite-social-kit{prefix}cp_social_reactionsclanbite-social-kit
Functions 82
clanbite_social_kit_add_ignored_friend_request_user()clanbite-social-kitAdd one user ID to the ignore list.clanbite_social_kit_apply_social_feed_snapshot_to_store()clanbite-social-kitMerge SSR feed data into the clanbite-social/feed store and return block context fields.clanbite_social_kit_are_friends()clanbite-social-kitCheck if two users are friends.clanbite_social_kit_can_manage_group()clanbite-social-kitCheck if a user can manage a group (admin or editor).clanbite_social_kit_can_mention_group()clanbite-social-kitCheck if a user can mention a group.clanbite_social_kit_can_mention_team()clanbite-social-kitCheck if a user can mention a team.clanbite_social_kit_can_mention_user()clanbite-social-kitCheck if a user can mention another user.clanbite_social_kit_coerce_home_feed_to_profile_on_profile_urls()clanbite-social-kitIf the block still uses default home on a player/author profile URL, switch to the profile stream.clanbite_social_kit_default_composer_replies_disabled()clanbite-social-kitWhether new posts should have replies disabled by default in the composer (inverse of allow-replies preference).clanbite_social_kit_default_composer_visibility()clanbite-social-kitDefault visibility for new non-team posts in the composer (per-user account setting, else public).clanbite_social_kit_emoji_image_url()clanbite-social-kitAddress of the flat (Twemoji) image for an emoji, the same set WordPress uses for its own emoji fallback.clanbite_social_kit_enqueue_mention_picker()clanbite-social-kitLoad the @mention picker (script and style) on the current page for signed-in members.clanbite_social_kit_enqueue_reactions()clanbite-social-kitLoad the shared reactions client script (window.clanbite.reactions) on a page that shows reactions.clanbite_social_kit_enqueue_reactions()clanbite-social-kitLoad the shared reactions client script; global alias of \Kernowdev\ClanbiteSocialKit\clanbite_social_kit_enqueue_reactions().clanbite_social_kit_feed_interactivity_state()clanbite-social-kitPrints wp_interactivity_state for clanbite-social/feed once per request.clanbite_social_kit_friends_feature_enabled()clanbite-social-kitGlobal setting: friend relationships and “friends only” visibility are available (default on).clanbite_social_kit_get_bundled_group_avatar_url()clanbite-social-kitGet the bundled default group avatar URL (plugin default).clanbite_social_kit_get_bundled_group_cover_url()clanbite-social-kitGet the bundled default group cover URL (plugin default).clanbite_social_kit_get_default_group_avatar_url()clanbite-social-kitGet the default group avatar URL (resolved from settings/filter/bundled).clanbite_social_kit_get_default_group_cover_url()clanbite-social-kitGet the default group cover URL (resolved from settings/filter/bundled).clanbite_social_kit_get_group_avatar_url()clanbite-social-kitGet group avatar URL.clanbite_social_kit_get_group_by_slug()clanbite-social-kitGet a group by slug.clanbite_social_kit_get_group_cover_url()clanbite-social-kitGet group cover URL.clanbite_social_kit_get_group_join_mode()clanbite-social-kitGet group join mode.clanbite_social_kit_get_group_member_count()clanbite-social-kitGet group member count.clanbite_social_kit_get_group_member_role()clanbite-social-kitGet a user's role in a group.clanbite_social_kit_get_group_mention_permission()clanbite-social-kitGet a group's mention permission setting.clanbite_social_kit_get_group_roles()clanbite-social-kitGet available group roles.clanbite_social_kit_get_group_subpages_for_display()clanbite-social-kitGroup subpages for display, respecting per-group events toggles.clanbite_social_kit_get_group_subpages()clanbite-social-kitGet registered group subpages.clanbite_social_kit_get_group_url()clanbite-social-kitGet group profile URL.clanbite_social_kit_get_group()clanbite-social-kitGet a group by ID.clanbite_social_kit_get_ignored_friend_request_user_ids()clanbite-social-kitUser IDs ignored by this user for future friend requests.clanbite_social_kit_get_reaction_types()clanbite-social-kitReaction definitions for templates / headless UIs (respects clanbite_social_kit_reaction_types).clanbite_social_kit_get_reaction_types()clanbite-social-kitThe registered reaction types (after the clanbite_social_kit_reaction_types filter), keyed by slug.clanbite_social_kit_get_team_mention_permission()clanbite-social-kitGet a team's mention permission setting.clanbite_social_kit_get_user_groups()clanbite-social-kitGet groups a user belongs to.clanbite_social_kit_get_user_mention_permission()clanbite-social-kitGet a user's mention permission setting.clanbite_social_kit_global_auto_friend_user_ids()clanbite-social-kitWordPress user IDs every member is automatically befriended with (accepted friendship on register / login).clanbite_social_kit_global_auto_join_group_ids()clanbite-social-kitcp_group post IDs every member automatically joins (member role on register / login).clanbite_social_kit_global_feed_follow_user_ids()clanbite-social-kitWordPress user IDs whose personal (non-team) posts appear in every member’s home feed in addition to friends and self. “Friends only” visibility still requires a real friendship.clanbite_social_kit_group_template_footer()clanbite-social-kitPrint the theme footer for a group template; counterpart of clanbite_social_kit_group_template_header().clanbite_social_kit_group_template_header()clanbite-social-kitPrint the theme header for a group template, unless the template is already rendered inside a block-theme page.clanbite_social_kit_initial_visibility_state()clanbite-social-kitDerived state that tells the server the initial visibility of popups, menus, forms and conditional blocks.clanbite_social_kit_is_friend_request_ignored()clanbite-social-kitWhether a requester is ignored by this user for friend requests.clanbite_social_kit_is_group_banned()clanbite-social-kitCheck if user is banned from a group.clanbite_social_kit_is_group_member()clanbite-social-kitCheck if a user is a member of a group.clanbite_social_kit_is_groups_enabled()clanbite-social-kitCheck if groups feature is enabled.clanbite_social_kit_mentions_as_names()clanbite-social-kitReplace @username in plain text with the member's display name (for notification lines and other text without links).clanbite_social_kit_mentions_enabled()clanbite-social-kitCheck if @mentions are globally enabled.clanbite_social_kit_message_definitions()clanbite-social-kitMessages Social Kit registers with Clanbite's message registry.clanbite_social_kit_message()clanbite-social-kitWording for one of Social Kit's messages with its placeholders filled in.clanbite_social_kit_notify_mentions()clanbite-social-kitNotify the members @mentioned in content outside the feed.clanbite_social_kit_player_add_friend_interactivity_state()clanbite-social-kitPrints wp_interactivity_state for clanbite-social/add-friend once per request.clanbite_social_kit_player_friend_invites_settings_url()clanbite-social-kitURL to the Friends → Friend Invites panel in player settings (for links and notifications).clanbite_social_kit_profile_user_id_for_feed_store()clanbite-social-kitprofileUserId stored in the shared feed Interactivity context.clanbite_social_kit_reaction_icon_bound()clanbite-social-kitInteractivity counterpart of clanbite_social_kit_reaction_icon(): binds an emoji and an image to a reaction row.clanbite_social_kit_reaction_icon()clanbite-social-kitMarkup for one reaction's icon: the same glyph everywhere a reaction appears (picker, summary, tooltip, action button).clanbite_social_kit_reactions_globally_enabled()clanbite-social-kitGlobal setting: reactions on posts and comments are allowed (default on).clanbite_social_kit_register_feed_context()clanbite-social-kitRegister a feed context for the Social feed and Social composer blocks.clanbite_social_kit_register_group_subpage()clanbite-social-kitRegister a group subpage.clanbite_social_kit_register_reactable()clanbite-social-kitMake an object type reactable (see \Kernowdev\ClanbiteSocialKit\Social\Reactions for the arguments).clanbite_social_kit_register_reactable()clanbite-social-kitMake an object type reactable; global alias of \Kernowdev\ClanbiteSocialKit\clanbite_social_kit_register_reactable().clanbite_social_kit_remove_ignored_friend_request_user()clanbite-social-kitRemove one user ID from the ignore list.clanbite_social_kit_render_mentions()clanbite-social-kitTurn @username in content into profile links, honouring each member's "who can @mention me" setting.clanbite_social_kit_render_reaction_picker()clanbite-social-kitMarkup for the reaction picker; see \Kernowdev\ClanbiteSocialKit\Social\Reaction_Markup::picker().clanbite_social_kit_render_reaction_picker()clanbite-social-kitMarkup for the reaction picker; global alias of \Kernowdev\ClanbiteSocialKit\clanbite_social_kit_render_reaction_picker().clanbite_social_kit_render_reaction_summary()clanbite-social-kitMarkup for the reaction chips (with tooltips) of one object; see \Kernowdev\ClanbiteSocialKit\Social\Reaction_Markup::summary().clanbite_social_kit_render_reaction_summary()clanbite-social-kitMarkup for the reaction chips of one object; global alias of \Kernowdev\ClanbiteSocialKit\clanbite_social_kit_render_reaction_summary().clanbite_social_kit_replace_interactivity_feed_posts_atomically()clanbite-social-kitReplace posts in the Interactivity store without recursive merging.clanbite_social_kit_resolve_feed_profile_user_id()clanbite-social-kitResolve the profile stream owner when feedContext is profile and profileUserId is not set in the block.clanbite_social_kit_resolve_feed_request()clanbite-social-kitResolve which feed the Social feed / composer blocks should show for the given block attributes.clanbite_social_kit_sanitize_user_default_visibility()clanbite-social-kitSanitize stored default visibility for a user (invalid values become public).clanbite_social_kit_search_groups()clanbite-social-kitSearch groups.clanbite_social_kit_set_group_mention_permission()clanbite-social-kitSet a group's mention permission setting.clanbite_social_kit_set_team_mention_permission()clanbite-social-kitSet a team's mention permission setting.clanbite_social_kit_set_user_mention_permission()clanbite-social-kitSet a user's mention permission setting.clanbite_social_kit_toggle_reaction()clanbite-social-kitToggle a reaction on any registered object type, with every check and shared hook applied.clanbite_social_kit_toggle_reaction()clanbite-social-kitToggle a reaction on any registered object type; global alias of \Kernowdev\ClanbiteSocialKit\clanbite_social_kit_toggle_reaction().clanbite_social_kit_user_can_post_to_team_feed()clanbite-social-kitWhether the user may publish to a team social feed (team admins only).clanbite_social_kit_user_default_allow_replies()clanbite-social-kitWhether the user wants replies allowed on new posts by default.clanbite_social_kit()clanbite-social-kitPlugin singleton accessor.
Hooks 104
clanbite_group_profile_home_labelclanbite-social-kitFilter the label for the group profile home (main) link.clanbite_group_profile_nav_show_settingsclanbite-social-kitFilters whether the group profile navigation shows a Settings link.clanbite_social_feed_before_post_engagement_actionsclanbite-social-kitAllow plugins to inject controls above the standard engagement toolbar.clanbite_social_feed_group_idclanbite-social-kitAllow themes / other plugins to supply the group post ID (e.g. custom routing).clanbite_social_feed_post_engagement_actionsclanbite-social-kitExtend the per-post engagement row (React / Reply / Share) with custom actions.clanbite_social_feed_profile_user_idclanbite-social-kitAllow themes / other plugins to supply the profile user ID (e.g. custom routing).clanbite_social_feed_subject_idclanbite-social-kitFilters the subject ID of a registered (third-party) feed context.clanbite_social_feed_team_idclanbite-social-kitAllow themes / other plugins to supply the team post ID (e.g. custom routing).clanbite_social_kit_abilities_registeredclanbite-social-kitFires after Social Kit registers Abilities API entries.clanbite_social_kit_activity_{activity_type}clanbite-social-kitFilter activity post payload for a specific activity type.clanbite_social_kit_activity_card_htmlclanbite-social-kitFilter the activity card HTML for custom activity types.clanbite_social_kit_activity_card_html_{activity_type}clanbite-social-kitFilter the activity card HTML for a specific activity type.clanbite_social_kit_activity_card_html_friendship_acceptedclanbite-social-kitFilter the friendship activity card HTML.clanbite_social_kit_activity_insertedclanbite-social-kitFires after an automatic activity post is inserted.clanbite_social_kit_activity_label_{activity_type}clanbite-social-kitFilter the activity label for a specific activity type.clanbite_social_kit_activity_payloadclanbite-social-kitFilter activity post payload before insertion.clanbite_social_kit_after_group_create_formclanbite-social-kitFires after the group create form.clanbite_social_kit_allow_reactionclanbite-social-kitFilters whether a user may apply a reaction to a post.clanbite_social_kit_auto_membership_syncedclanbite-social-kitFires after global auto membership lists are applied for a user.clanbite_social_kit_before_create_groupclanbite-social-kitFilter group data before creation.clanbite_social_kit_before_delete_groupclanbite-social-kitFires before a group is deleted.clanbite_social_kit_before_group_create_formclanbite-social-kitFires before the group create form notices and fields.clanbite_social_kit_before_update_groupclanbite-social-kitFilter group data before update.clanbite_social_kit_can_reactclanbite-social-kitFilters whether a user may apply a reaction to an object. The single permission hook for every surface.clanbite_social_kit_can_view_postclanbite-social-kitFilters whether a viewer may read a single social post.clanbite_social_kit_comment_createdclanbite-social-kitFires when a social comment is created.clanbite_social_kit_comment_deletedclanbite-social-kitFires after a social comment and the replies below it were deleted.clanbite_social_kit_comment_reaction_toggledclanbite-social-kitFires after a comment reaction row is toggled.clanbite_social_kit_comment_updatedclanbite-social-kitFires after a social comment was edited.clanbite_social_kit_create_group_form_dataclanbite-social-kitFilter group creation data from form submission.clanbite_social_kit_default_group_avatar_urlclanbite-social-kitFilter the default group avatar URL.clanbite_social_kit_default_group_cover_urlclanbite-social-kitFilter the default group cover URL.clanbite_social_kit_event_rsvp_unhandledclanbite-social-kitAllow other plugins to handle RSVP logging for custom event types.clanbite_social_kit_feed_allow_link_preview_fallbackclanbite-social-kitFilters whether the feed may generate a link preview on the fly when none was stored (opt-in; default false).clanbite_social_kit_feed_contextsclanbite-social-kitFilter the final list of feed contexts.clanbite_social_kit_friend_invites_settings_urlclanbite-social-kitFilter the player settings URL used for friend invites (notifications, profile hints).clanbite_social_kit_friend_request_createdclanbite-social-kitFires after a pending friend request row is created.clanbite_social_kit_friend_request_notificationclanbite-social-kitFilter or short-circuit friend-request notification (Clanbite Notifications).clanbite_social_kit_friendship_acceptedclanbite-social-kitFires when a friendship request is accepted.clanbite_social_kit_friendship_removedclanbite-social-kitFires after an accepted friendship was ended by one of the two members.clanbite_social_kit_global_auto_friend_user_idsclanbite-social-kitFilter global auto-friend target user IDs.clanbite_social_kit_global_auto_join_group_idsclanbite-social-kitFilter global auto-join group post IDs.clanbite_social_kit_global_feed_follow_user_idsclanbite-social-kitFilter user IDs merged into the home feed author list for all viewers (excluding self per viewer).clanbite_social_kit_group_createdclanbite-social-kitFires after a group is created.clanbite_social_kit_group_deletedclanbite-social-kitFires after a group is deleted.clanbite_social_kit_group_member_joinedclanbite-social-kitFires when a user joins a group.clanbite_social_kit_group_member_leftclanbite-social-kitFires when a user leaves a group.clanbite_social_kit_group_meta_argsclanbite-social-kitFilter group meta registration args.clanbite_social_kit_group_meta_args_{key}clanbite-social-kitFilters the registration arguments of one group meta key.clanbite_social_kit_group_post_type_argsclanbite-social-kitFilter the group post type arguments.clanbite_social_kit_group_post_type_labelsclanbite-social-kitFilter the group post type labels.clanbite_social_kit_group_rolesclanbite-social-kitFilter available group roles.clanbite_social_kit_group_subpagesclanbite-social-kitFilter registered group subpages.clanbite_social_kit_group_updatedclanbite-social-kitFires after a group is updated.clanbite_social_kit_home_feed_post_idsclanbite-social-kitFilters the extra post IDs shown in a viewer's home feed.clanbite_social_kit_initclanbite-social-kitFires when Social Kit is loaded and Clanbite is available.clanbite_social_kit_insert_post_dataclanbite-social-kitFilters the data stored for a new social post, just before it is inserted.clanbite_social_kit_mention_notificationclanbite-social-kitFilter mention notification data before sending.clanbite_social_kit_mention_picker_selectorsclanbite-social-kitFilters the CSS selectors of fields that get the @mention picker.clanbite_social_kit_mention_search_resultsclanbite-social-kitFilter mention search results.clanbite_social_kit_mentions_processedclanbite-social-kitFires after mention notifications are sent.clanbite_social_kit_object_reaction_toggledclanbite-social-kitFires after a reaction is toggled on any object, whichever extension owns it.clanbite_social_kit_parsed_mentionsclanbite-social-kitFilter parsed mentions before resolution.clanbite_social_kit_player_at_tagclanbite-social-kitFilters the displayed @ tag text for the player at-tag block.clanbite_social_kit_player_card_enabledclanbite-social-kitFilters whether hovering an @mention shows the player card.clanbite_social_kit_player_card_htmlclanbite-social-kitFilters the player card markup before it is sanitised and sent to the page.clanbite_social_kit_player_friends_countclanbite-social-kitFilter the displayed friends count for the player friends count block.clanbite_social_kit_player_status_post_countclanbite-social-kitFilter the displayed status-post count for the player post count block.clanbite_social_kit_poll_votedclanbite-social-kitFires after a user successfully casts their first vote on a feed poll.clanbite_social_kit_post_createdclanbite-social-kitFires when a social post is created.clanbite_social_kit_post_deletedclanbite-social-kitFires after a social post and everything attached to it (comments, reactions, media, poll votes) was deleted.clanbite_social_kit_post_urlclanbite-social-kitFilter the URL for a social post (for mention and reply notifications).clanbite_social_kit_reaction_icon_htmlclanbite-social-kitFilters the markup of a single reaction icon (picker and any server-rendered reaction list).clanbite_social_kit_reaction_picker_htmlclanbite-social-kitFilters the reaction picker markup before it is printed.clanbite_social_kit_reaction_summary_htmlclanbite-social-kitFilters the reaction chips markup before it is printed.clanbite_social_kit_reaction_toggledclanbite-social-kitFires after a reaction row is toggled.clanbite_social_kit_reaction_type_restclanbite-social-kitFilters one reaction type's REST representation.clanbite_social_kit_reaction_typesclanbite-social-kitFilters the registered social reaction types.clanbite_social_kit_reactors_list_limitclanbite-social-kitFilters how many people the "See all" list returns for one reaction.clanbite_social_kit_register_feed_contextsclanbite-social-kitRegister third-party feed contexts.clanbite_social_kit_register_reactablesclanbite-social-kitFires once when reactable object types are collected: call clanbite_social_kit_register_reactable() here.clanbite_social_kit_replies_per_pageclanbite-social-kitFilters how many replies the feed loads per page.clanbite_social_kit_resolve_mentionclanbite-social-kitAllow third-party plugins to resolve custom mention types.clanbite_social_kit_resolved_mentionsclanbite-social-kitFilter resolved mentions.clanbite_social_kit_rest_api_initclanbite-social-kitFires after Social Kit registers REST routes (extend from another plugin).clanbite_social_kit_rest_authorclanbite-social-kitFilters cached author rows before they are exposed in social REST payloads.clanbite_social_kit_search_groups_argsclanbite-social-kitFilter group search query args.clanbite_social_kit_should_auto_membership_sync_userclanbite-social-kitWhether to run automatic friend/group membership for this user.clanbite_social_kit_should_show_player_add_friend_buttonclanbite-social-kitWhether to render friend controls for this viewer and profile owner.clanbite_social_kit_status_reply_notificationclanbite-social-kitFilter or short-circuit the status-reply notification (Clanbite Notifications).clanbite_social_kit_update_group_form_dataclanbite-social-kitFilter group update data from form submission.clanbite_social_kit_user_can_delete_commentclanbite-social-kitFilters whether a user may delete a social comment.clanbite_social_kit_user_can_delete_postclanbite-social-kitFilters whether a user may delete a social post.clanbite_social_kit_user_can_edit_commentclanbite-social-kitFilters whether a user may edit a social comment.clanbite_social_kit_user_can_post_to_team_feedclanbite-social-kitFilter whether a user may post to a team feed.clanbite.mentions.selectorsclanbite-social-kitFilters the selector list of fields that get the @mention picker.clanbite.popup.toggledclanbite-social-kitThis action is documented in assets/js/clanbite-popups.js (clanbite.popup.toggled).clanbite.reactions.requestclanbite-social-kitFilters the request before a reaction toggle is sent.clanbite.reactions.toggledclanbite-social-kitFires after the server answered a reaction toggle.clanbite.socialKit.composerPostBodyclanbite-social-kitFilters the JSON body the Social composer sends to POST /clanbite-social-kit/v1/posts.clanbite.socialKit.editorFeedContextsclanbite-social-kitFilters the feed contexts offered by the Social feed and Social composer blocks in the block editor.clanbite.socialKit.feedContextControlclanbite-social-kitReplaces the default subject control (number / player / team picker) for a feed context.clanbite.socialKit.feedPostsUrlclanbite-social-kitFilters the REST URL the Social feed block loads posts from (first page and pagination).emoji_svg_urlclanbite-social-kitThis filter is documented in wp-includes/formatting.php.
Messages 31
activity.friendsclanbite-social-kitAutomatic post on both members’ profiles when a friend request is accepted.activity.group_createdclanbite-social-kitAutomatic post when a member creates a group.activity.group_joinedclanbite-social-kitAutomatic post when a member joins a group.activity.rsvpclanbite-social-kitAutomatic post when a member replies to a match, group or event invitation.activity.team_createdclanbite-social-kitAutomatic post on a member’s profile when they create a team.activity.team_joinedclanbite-social-kitAutomatic post when a member joins a team.feed_toast.comment_failedclanbite-social-kitfeed_toast.delete_failedclanbite-social-kitfeed_toast.link_copiedclanbite-social-kitfeed_toast.replies_load_failedclanbite-social-kitfeed_toast.reply_delete_failedclanbite-social-kitfeed_toast.reply_update_failedclanbite-social-kitfeed_toast.share_unavailableclanbite-social-kitShown when a member tries to share a post on a page that has no status composer.feed_toast.update_failedclanbite-social-kitfriend_request.messageclanbite-social-kitThe line under the title of a friend request.friend_request.titleclanbite-social-kitSent when someone sends a member a friend request.friends_panel.accept_errorclanbite-social-kitfriends_panel.accept_successclanbite-social-kitPopup on the profile friends settings after accepting a request.friends_panel.decline_errorclanbite-social-kitfriends_panel.decline_successclanbite-social-kitfriends_panel.ignore_errorclanbite-social-kitfriends_panel.ignore_successclanbite-social-kitfriends_panel.unignore_errorclanbite-social-kitfriends_panel.unignore_successclanbite-social-kitmention.message_commentclanbite-social-kitThe line under the title when the mention is in a comment.mention.message_genericclanbite-social-kitThe line under the title when someone mentions a member outside the feed, for example in a forum topic or reply.mention.message_postclanbite-social-kitThe line under the title when the mention is in a post.mention.titleclanbite-social-kitSent when someone @mentions a member in a post or comment.social_reply.message_commentclanbite-social-kitThe line under the title when someone replies to a comment.social_reply.message_postclanbite-social-kitThe line under the title when someone replies directly to a post.social_reply.titleclanbite-social-kitSent when someone replies to a member’s post or comment.
Methods 329
Activity_Logger::on_event_rsvp_updated()clanbite-social-kitRSVP updates => activity post for the user (and optionally group/team via filters).Activity_Logger::on_friendship_accepted()clanbite-social-kitFriendship accepted => activity post for both users.Activity_Logger::on_group_created()clanbite-social-kitGroup created => user activity post.Activity_Logger::on_group_member_joined()clanbite-social-kitGroup member joined => activity post for user and group.Activity_Logger::on_team_created()clanbite-social-kitTeam creation => user activity post.Activity_Logger::on_team_roster_updated()clanbite-social-kitTeam roster changes => join activity posts for newly added users.Activity_Logger::register()clanbite-social-kitRegister event listeners.Auto_Membership_Sync::on_user_register()clanbite-social-kitAuto_Membership_Sync::on_wp_login()clanbite-social-kitRe-sync on login so existing accounts pick up newly added global IDs.Auto_Membership_Sync::register()clanbite-social-kitRegister WordPress hooks.Auto_Membership_Sync::sync_user()clanbite-social-kitApply global auto-friend and auto-join lists for one user.Clanbite_Group_Integration::filter_get_block_templates()clanbite-social-kitClanbite_Group_Integration::filter_group_events_create_url()clanbite-social-kitClanbite_Group_Integration::filter_manage_url()clanbite-social-kitClanbite_Group_Integration::filter_player_calendar_group_ids()clanbite-social-kitClanbite_Group_Integration::filter_pre_get_block_file_template()clanbite-social-kitClanbite_Group_Integration::filter_user_can_manage()clanbite-social-kitClanbite_Group_Integration::filter_user_is_member()clanbite-social-kitClanbite_Group_Integration::register_core_group_subpages()clanbite-social-kitCopy Social Kit subpages into core’s registry so clanbite_get_group_subpages() matches nav blocks.Clanbite_Group_Integration::register_virtual_header_template_part()clanbite-social-kitExpose the group profile header markup as a theme-scoped template part (FSE).Clanbite_Group_Integration::register()clanbite-social-kitRegister hooks when groups are enabled and Clanbite is loaded.Components::register_components()clanbite-social-kitRegister the components.Components::register()clanbite-social-kitHook the registration (needs Clanbite 1.6.4+; older core ignores it).Data_Access::accept_friend_request()clanbite-social-kitAccept a pending request where current user is the target (friend_user_id).Data_Access::are_friends()clanbite-social-kitWhether two users have an accepted friendship.Data_Access::count_accepted_friends()clanbite-social-kitNumber of accepted friendships for a user (unique friend user IDs).Data_Access::count_comment_reactions()clanbite-social-kitTotal reactions on one comment.Data_Access::count_comments()clanbite-social-kitComment count for a post.Data_Access::count_profile_status_posts_visible_to_viewer()clanbite-social-kitCount post_type = status rows for a player profile, respecting the same visibility rules as self::query_profile_feed().Data_Access::count_reactions()clanbite-social-kitReaction count for a post.Data_Access::decline_friend_request()clanbite-social-kitDecline (delete) a pending request where current user is the target.Data_Access::delete_comment_tree()clanbite-social-kitDelete a comment with its replies and their reactions.Data_Access::delete_owned_post()clanbite-social-kitDelete a post and dependent rows (author, team or group manager, or site administrator).Data_Access::ensure_accepted_friendship_between()clanbite-social-kitEnsure an accepted friendship exists between two users (creates or upgrades a row; idempotent).Data_Access::get_accepted_friend_ids()clanbite-social-kitWordPress user IDs that are accepted friends of this user (either direction).Data_Access::get_comment_reaction_counts_by_comment()clanbite-social-kitCounts per reaction_type for one comment.Data_Access::get_comment_reaction_reactor_user_ids_for_comments()clanbite-social-kitRecent distinct reactor user IDs per reaction slug per comment.Data_Access::get_comment_reaction_summaries_for_comments()clanbite-social-kitBatch reaction summaries for many comments (feed / thread).Data_Access::get_comment_row()clanbite-social-kitSingle comment row or null.Data_Access::get_friendship_row_between()clanbite-social-kitAny friendship row between two users (any status).Data_Access::get_pending_incoming()clanbite-social-kitPending requests where the user is the recipient.Data_Access::get_pending_outgoing()clanbite-social-kitPending requests the user sent.Data_Access::get_poll_vote_counts()clanbite-social-kitVote counts per option index for a post.Data_Access::get_post_media_rows()clanbite-social-kitMedia rows for a post.Data_Access::get_post()clanbite-social-kitFetch one post row.Data_Access::get_reaction_counts_by_post()clanbite-social-kitCounts per reaction_type for one post.Data_Access::get_reaction_reactor_user_ids_for_posts()clanbite-social-kitRecent distinct reactor user IDs per reaction slug per post (newest reactions first).Data_Access::get_reaction_summaries_for_posts()clanbite-social-kitBatch reaction summaries for feed formatting (counts + viewer’s slugs).Data_Access::get_user_comment_reaction_slugs()clanbite-social-kitReaction type slugs the viewer has on this comment.Data_Access::get_user_poll_vote_option_index()clanbite-social-kitWhich option index the user voted for, if any.Data_Access::get_user_reaction_slugs()clanbite-social-kitReaction types the user has on this post.Data_Access::insert_comment()clanbite-social-kitInsert comment.Data_Access::insert_friend_request()clanbite-social-kitInsert a pending friend request (from -> to).Data_Access::insert_poll_vote()clanbite-social-kitRecord a viewer vote (one per user per post; enforced by UNIQUE KEY).Data_Access::insert_post_media_rows()clanbite-social-kitLink attachment rows to a social post (validated by caller).Data_Access::insert_post()clanbite-social-kitInsert a post.Data_Access::parse_poll_json()clanbite-social-kitDecode stored poll JSON into question + option labels.Data_Access::query_comments()clanbite-social-kitList comments for a post by top-level pages, including descendants for those parents.Data_Access::query_group_feed()clanbite-social-kitPaginated feed for a single group.Data_Access::query_home_feed()clanbite-social-kitHome feed: posts from self + accepted friends.Data_Access::query_profile_feed()clanbite-social-kitProfile feed: posts by one author, visibility rules for viewer.Data_Access::query_team_feed()clanbite-social-kitTeam feed: posts scoped to a team.Data_Access::record_view()clanbite-social-kitRecord a unique view for a post for the given logged-in user.Data_Access::remove_accepted_friendship()clanbite-social-kitRemove an accepted friendship row (either participant may end the friendship).Data_Access::table_name()clanbite-social-kitFull prefixed table name for Social Kit custom tables.Data_Access::toggle_comment_reaction()clanbite-social-kitToggle one reaction on a comment (insert/remove row).Data_Access::toggle_like()clanbite-social-kitBack-compat: toggle the like reaction only.Data_Access::toggle_reaction()clanbite-social-kitToggle one reaction type for a user (insert/remove row).Data_Access::update_comment_content()clanbite-social-kitReplace a comment's content.Data_Access::update_owned_post_privacy()clanbite-social-kitUpdate visibility and replies toggle (author only, non-team posts).Data_Access::update_owned_post()clanbite-social-kitUpdate post body and optional link fields (author only).Data_Access::user_can_delete_comment_row()clanbite-social-kitWhether a user may delete a comment: its author, whoever manages the post it is on, or a site administrator (moderation).Data_Access::user_can_delete_post_row()clanbite-social-kitWhether the user can delete a post row: anyone who can manage it, plus site administrators (moderation).Data_Access::user_can_edit_comment_row()clanbite-social-kitWhether a user may edit a comment: its author.Data_Access::user_can_manage_post_row()clanbite-social-kitWhether the user can manage a post row (author or team admin when scoped to a team).Data_Access::user_has_comment_reaction()clanbite-social-kitWhether the user has a given reaction on a comment.Data_Access::user_has_reaction()clanbite-social-kitWhether user has a reaction on post.Feed_Context_Registry::all()clanbite-social-kitEvery registered context, bundled first.Feed_Context_Registry::editor_config()clanbite-social-kitContext list for the block editor script.Feed_Context_Registry::get_by_visibility()clanbite-social-kitRegistered context that stores its posts under a given visibility slug.Feed_Context_Registry::get()clanbite-social-kitLook up a context.Feed_Context_Registry::has()clanbite-social-kitWhether a context is registered.Feed_Context_Registry::home_post_ids()clanbite-social-kitPost IDs registered feed contexts contribute to a viewer's home feed.Feed_Context_Registry::register()clanbite-social-kitRegister (or replace) a feed context.Feed_Context_Registry::unregister()clanbite-social-kitRemove a third-party context (bundled contexts cannot be removed).Feed_Context::__construct()clanbite-social-kitBuild a context from its registration arguments (see the class docblock).Feed_Context::accepts_posts()clanbite-social-kitWhether viewers can post to this context at all.Feed_Context::can_post()clanbite-social-kitWhether the user may post to the feed.Feed_Context::can_view_post()clanbite-social-kitWhether a single post carrying this context's visibility slug may be read.Feed_Context::can_view()clanbite-social-kitWhether the viewer may read the feed.Feed_Context::end_of_feed()clanbite-social-kitMessage shown after the last post.Feed_Context::has_post_gate()clanbite-social-kitWhether a can_view_post callback was supplied.Feed_Context::home_post_ids()clanbite-social-kitPost IDs this context contributes to a viewer's home feed.Feed_Context::is_valid()clanbite-social-kitWhether the context can run (a query callback is mandatory).Feed_Context::query()clanbite-social-kitQuery one page of posts.Feed_Context::resolve_subject()clanbite-social-kitResolve the subject ID for a block render.Feed_Context::rest_path()clanbite-social-kitREST path (below the plugin namespace) the client loads for this feed.Feed_Context::to_editor_array()clanbite-social-kitData the block editor needs to offer this context.Feed_Deep_Links::comment_element_id()clanbite-social-kitDOM / hash fragment id for a comment (no leading #).Feed_Deep_Links::comment_hash()clanbite-social-kitLocation hash targeting a comment (includes #).Feed_Deep_Links::post_hash()clanbite-social-kitLocation hash targeting a post thread (includes #).Feed_Permissions::can_post_to_group_feed()clanbite-social-kitWhether a user may publish to a group feed (any non-banned member).Feed_Permissions::can_post_to_team_feed()clanbite-social-kitWhether a user may publish to a team feed.Feed_Permissions::can_view_group_feed()clanbite-social-kitWhether a viewer can see a group feed.Feed_Permissions::can_view_team_feed()clanbite-social-kitWhether a viewer can read team feed posts.Feed_Permissions::viewer_group_ids()clanbite-social-kitGroups the user belongs to and may still read (the sources of their home feed's group posts).Feed_Permissions::viewer_team_ids()clanbite-social-kitTeams the user belongs to and may still read (the sources of their home feed's team posts).Friend_Request_Notifications::notify_recipient()clanbite-social-kitFriend_Request_Notifications::register_notification_type()clanbite-social-kitFriend_Request_Notifications::register()clanbite-social-kitRegister hooks.Group_Data_Access::add_group_to_user_index()clanbite-social-kitAdd group to user's membership index.Group_Data_Access::can_manage_group()clanbite-social-kitCheck if user can manage group (admin or editor).Group_Data_Access::count_members()clanbite-social-kitCount active members in a group.Group_Data_Access::create_group()clanbite-social-kitCreate a new group.Group_Data_Access::delete_group()clanbite-social-kitDelete a group.Group_Data_Access::ensure_author_is_admin()clanbite-social-kitMake a group's author its admin when the group has no admin yet.Group_Data_Access::get_avatar_url()clanbite-social-kitGet group avatar URL.Group_Data_Access::get_bundled_default_avatar_url()clanbite-social-kitGet the bundled default avatar URL.Group_Data_Access::get_bundled_default_cover_url()clanbite-social-kitGet the bundled default cover URL.Group_Data_Access::get_cover_url()clanbite-social-kitGet group cover URL.Group_Data_Access::get_default_avatar_url()clanbite-social-kitDefault avatar URL.Group_Data_Access::get_default_cover_url()clanbite-social-kitDefault cover URL.Group_Data_Access::get_group_by_slug()clanbite-social-kitGet a group by slug.Group_Data_Access::get_group()clanbite-social-kitGet a group by ID.Group_Data_Access::get_join_mode()clanbite-social-kitGet group join mode.Group_Data_Access::get_member_role()clanbite-social-kitGet a member's role in a group.Group_Data_Access::get_member_roles_map()clanbite-social-kitGet member roles map for a group.Group_Data_Access::get_members()clanbite-social-kitGet group members.Group_Data_Access::get_profile_url()clanbite-social-kitGet group profile URL.Group_Data_Access::get_user_groups()clanbite-social-kitGet groups a user belongs to.Group_Data_Access::is_banned()clanbite-social-kitCheck if user is banned from group.Group_Data_Access::is_group_admin()clanbite-social-kitCheck if user is a group admin.Group_Data_Access::remove_group_from_user_index()clanbite-social-kitRemove group from user's membership index.Group_Data_Access::remove_member()clanbite-social-kitRemove a member from a group.Group_Data_Access::search_groups()clanbite-social-kitSearch/list groups.Group_Data_Access::set_member_role()clanbite-social-kitSet a member's role in a group.Group_Data_Access::update_group()clanbite-social-kitUpdate a group.Group_Data_Access::update_member_count()clanbite-social-kitUpdate the cached member count.Group_Extension::ensure_author_is_admin_on_create()clanbite-social-kitPromote the author of a newly inserted group to admin when it has none.Group_Extension::handle_create_group()clanbite-social-kitHandle group creation form submission.Group_Extension::handle_delete_group()clanbite-social-kitHandle group deletion.Group_Extension::handle_join_group()clanbite-social-kitHandle join group.Group_Extension::handle_leave_group()clanbite-social-kitHandle leave group.Group_Extension::handle_update_group()clanbite-social-kitHandle group update form submission.Group_Extension::handle_update_member()clanbite-social-kitHandle member role/status update.Group_Extension::is_groups_enabled()clanbite-social-kitCheck if groups feature is enabled.Group_Extension::maybe_load_archive_template()clanbite-social-kitLoad archive template for groups.Group_Extension::maybe_load_single_template()clanbite-social-kitLoad single group template.Group_Extension::register_default_subpages()clanbite-social-kitRegister default group subpages.Group_Extension::register_query_vars()clanbite-social-kitRegister query vars.Group_Extension::register_rewrite_rules()clanbite-social-kitRegister rewrite rules for group subpages.Group_Extension::register()clanbite-social-kitRegister hooks.Group_Extension::render_group_page_shortcode()clanbite-social-kitShortcode [clanbite_social_kit_group_page]: output of the group PHP template without its own header/footer.Group_Extension::repair_groups_without_admin()clanbite-social-kitOne-time repair: give every existing group without an admin its author as admin.Group_Post_Type::admin_column_content()clanbite-social-kitRender custom admin column content.Group_Post_Type::admin_columns()clanbite-social-kitAdd custom admin columns.Group_Post_Type::get_labels()clanbite-social-kitGet post type labels.Group_Post_Type::get_roles()clanbite-social-kitGet all valid group roles.Group_Post_Type::register_meta_key()clanbite-social-kitRegister a meta key for the group post type.Group_Post_Type::register_meta()clanbite-social-kitRegister group meta keys.Group_Post_Type::register_post_type()clanbite-social-kitRegister the cp_group post type.Group_Post_Type::register()clanbite-social-kitRegister hooks.Group_Post_Type::sanitize_attendees_visibility()clanbite-social-kitSanitize attendees visibility.Group_Post_Type::sanitize_join_mode()clanbite-social-kitSanitize join mode.Group_Rest_Controller::check_logged_in()clanbite-social-kitCheck if user is logged in.Group_Rest_Controller::get_item()clanbite-social-kitGet single group.Group_Rest_Controller::get_items()clanbite-social-kitGet groups list.Group_Rest_Controller::get_members()clanbite-social-kitGet group members.Group_Rest_Controller::get_user_groups()clanbite-social-kitGet current user's groups.Group_Rest_Controller::register_routes()clanbite-social-kitRegister routes.Link_Preview::fallback_preview_data()clanbite-social-kitMinimal preview when HTTP fetch fails (same shape as fetch_for_url()).Link_Preview::fetch_for_url()clanbite-social-kitFetch title, description, image, site name for a public HTTP(S) URL.Mention_Picker::enqueue()clanbite-social-kitEnqueue the picker for the current member (nothing for visitors or when @mentions are off).Mention_Picker::maybe_enqueue()clanbite-social-kitPrint the picker on pages that show the social feed or composer.Mention_Picker::register_assets()clanbite-social-kitRegister the script and style (not yet printed).Mention_Picker::register()clanbite-social-kitRegister hooks.Mentions::author_may_mention()clanbite-social-kitWhether an author may @mention a member, by that member's privacy setting (Anyone, Friends, No one).Mentions::maybe_notify_reply_recipient()clanbite-social-kitNotify the post author (top-level reply) or parent comment author (nested reply).Mentions::mentions_to_names()clanbite-social-kitReplace @username in plain text with the member's display name (teams and groups with their name), as the feed shows them.Mentions::notify_content_mentions()clanbite-social-kitNotify the members @mentioned in content that lives outside the feed (forums, for example).Mentions::parse_mentions()clanbite-social-kitParse mentions from content.Mentions::process_comment_mentions()clanbite-social-kitProcess mentions in a newly created comment.Mentions::process_post_mentions()clanbite-social-kitProcess mentions in a newly created post.Mentions::register_social_reply_notification_type()clanbite-social-kitRegister social_reply for the notifications bell / profile UI.Mentions::register()clanbite-social-kitRegister hooks.Mentions::render_mentions()clanbite-social-kitRender content with mentions as links.Mentions::resolve_mentions()clanbite-social-kitResolve mentions to actual entities (users, teams, groups).Mentions::search_mentionables()clanbite-social-kitSearch mentionable entities for autocomplete.Player_Account_Settings::filter_save_data()clanbite-social-kitSanitize Social Kit fields before the save hook runs.Player_Account_Settings::register()clanbite-social-kitRegister WordPress hooks.Player_Account_Settings::render_social_defaults_section()clanbite-social-kitAccount tab: defaults for new social posts.Player_Account_Settings::save_social_defaults()clanbite-social-kitPersist user meta for feed defaults.Player_Card::card_html()clanbite-social-kitThe card markup for a player.Player_Card::enqueue()clanbite-social-kitLoad the script and style on the front end.Player_Card::register_routes()clanbite-social-kitRegister the REST route.Player_Card::register()clanbite-social-kitRegister hooks.Player_Card::rest_card()clanbite-social-kitREST callback.Player_Friends_Settings::register_nav()clanbite-social-kitAdd top-level Friends tab.Player_Friends_Settings::register_sub_nav()clanbite-social-kitAdd Friends -> Invites sub nav.Player_Friends_Settings::register()clanbite-social-kitRegister hooks.Player_Friends_Settings::render_invites_panel()clanbite-social-kitRender invite requests and ignore list controls.Player_Privacy_Settings::register_nav()clanbite-social-kitAdd top-level Privacy tab.Player_Privacy_Settings::register_sub_nav()clanbite-social-kitAdd Privacy -> Mentions sub nav.Player_Privacy_Settings::register()clanbite-social-kitRegister hooks.Player_Privacy_Settings::render_mentions_panel()clanbite-social-kitRender mentions privacy settings.Player_Privacy_Settings::save_settings()clanbite-social-kitSave privacy settings on clanbite_save_player_settings.Plugin::bootstrap_clanbite_extension()clanbite-social-kitLoad translations, then construct the Clanbite extension (must stay on init, before priority 0).Plugin::enqueue_admin_assets()clanbite-social-kitEnqueue compiled admin script when present.Plugin::init()clanbite-social-kitMentions, privacy settings, and related hooks (runs after text domain + extension bootstrap).Plugin::instance()clanbite-social-kitGet the singleton instance.Plugin::is_clanbite_available()clanbite-social-kitWhether the main Clanbite plugin is active and bootstrapped.Plugin::load_textdomain()clanbite-social-kitLoad translations early (plugins_loaded, priority 1).Plugin::render_clanbite_missing_notice()clanbite-social-kitAdmin notice when Clanbite is not active.Reaction_Markup::picker()clanbite-social-kitThe reaction picker popover: one button per reaction type.Reaction_Markup::summary()clanbite-social-kitThe reaction chips for one object, each with a tooltip naming the reaction, its count and who reacted.Reaction_Registry::allow_reaction()clanbite-social-kitWhether toggling this reaction is allowed (after registration check).Reaction_Registry::default_types()clanbite-social-kitCore defaults before filters run.Reaction_Registry::get_type()clanbite-social-kitDefinition for one slug or null.Reaction_Registry::get_types_for_rest()clanbite-social-kitOrdered list for REST and block context (labels, emoji, optional icon).Reaction_Registry::get_types()clanbite-social-kitRegistered reaction types keyed by slug.Reaction_Registry::is_registered()clanbite-social-kitWhether this slug is registered after filters.Reaction_Registry::sanitize_slug()clanbite-social-kitSanitize a reaction slug for storage (matches DB varchar length).Reactions::default_author()clanbite-social-kitA reactor as the browser needs it, when an object type supplies no author callback.Reactions::display_rows()clanbite-social-kitThe reaction chips for one object: every registered reaction with a count or the viewer's mark, then unknown slugs with counts.Reactions::enqueue_client()clanbite-social-kitLoad the shared reactions client (window.clanbite.reactions) for a surface that shows reactions.Reactions::get_object_type()clanbite-social-kitOne object type definition.Reactions::get_object_types()clanbite-social-kitAll registered object types (runs the registration action once).Reactions::icon_fields()clanbite-social-kitIcon fields shared by every reaction row: emoji, optional image and the hide_* flags the Interactivity bindings read.Reactions::my_reaction()clanbite-social-kitThe viewer's own reaction for the React button ("React" until they react, then their emoji and its name).Reactions::register_object_type()clanbite-social-kitRegister a reactable object type.Reactions::register_rest_routes()clanbite-social-kitRegister the shared REST route.Reactions::register()clanbite-social-kitHook the REST route.Reactions::rest_reactors()clanbite-social-kitREST: everyone who reacted to an object with one reaction (the "See all" list), newest first.Reactions::rest_toggle()clanbite-social-kitREST: toggle a reaction ({ "reaction_type": "like" }).Reactions::toggle()clanbite-social-kitToggle a reaction on any registered object.Reactions::ui_state()clanbite-social-kitEverything the reaction UI shows for one object: the chips with counts and reactors, the viewer's own reaction and flags.Rest_Controller::accept_friendship()clanbite-social-kitAccept an incoming friend request by row ID.Rest_Controller::create_comment()clanbite-social-kitAdd a comment to a post.Rest_Controller::create_friend_request()clanbite-social-kitSend a friend request to another user.Rest_Controller::create_post()clanbite-social-kitCreate a new social post.Rest_Controller::decline_friendship()clanbite-social-kitDecline an incoming friend request by row ID.Rest_Controller::delete_comment()clanbite-social-kitDelete a comment and the replies below it: its author, the post's manager or a site administrator.Rest_Controller::delete_post()clanbite-social-kitDelete a social post (author, team or group manager, or site administrator).Rest_Controller::editor_resolve_player()clanbite-social-kitBlock editor: resolve one user by ID for saved block attributes.Rest_Controller::editor_resolve_team()clanbite-social-kitBlock editor: resolve one team by post ID for saved block attributes.Rest_Controller::editor_search_players()clanbite-social-kitBlock editor: search users (players) by display name or username.Rest_Controller::editor_search_teams()clanbite-social-kitBlock editor: search teams by name (cp_team).Rest_Controller::get_comments()clanbite-social-kitList comments on a post.Rest_Controller::get_context_posts()clanbite-social-kitPaginated posts for any registered feed context (GET /feeds/{context}/{id}/posts).Rest_Controller::get_feed_context_snapshot()clanbite-social-kitFirst page of posts for any registered feed context (server render of the Social feed block).Rest_Controller::get_feed()clanbite-social-kitPaginated home feed for the current user.Rest_Controller::get_friendships()clanbite-social-kitList friend requests or accepted friendships.Rest_Controller::get_group_posts()clanbite-social-kitPaginated posts for a group feed.Rest_Controller::get_link_preview()clanbite-social-kitFetch link preview metadata for the composer (before posting).Rest_Controller::get_post()clanbite-social-kitFetch a single social post if the viewer may see it.Rest_Controller::get_posts_media()clanbite-social-kitBatched media loader for multiple post IDs.Rest_Controller::get_reaction_types()clanbite-social-kitRegistered reaction types (emoji, labels) for UI and third-party overrides.Rest_Controller::get_social_feed_block_initial_snapshot()clanbite-social-kitFirst page of posts for the social-feed block server render (includes media; same shape as REST).Rest_Controller::get_team_posts()clanbite-social-kitPaginated posts for a team feed.Rest_Controller::get_user_posts()clanbite-social-kitPaginated posts for a player profile (visibility rules).Rest_Controller::ignore_friendship_request()clanbite-social-kitIgnore requester from an incoming request and decline that request.Rest_Controller::reactor_author()clanbite-social-kitA reactor as the feed describes any author (shared reactions service callback).Rest_Controller::record_post_view()clanbite-social-kitRecord a (mostly) unique view for a post.Rest_Controller::register_routes()clanbite-social-kitRegister routes.Rest_Controller::remove_friendship()clanbite-social-kitRemove an accepted friendship (unfriend).Rest_Controller::remove_ignored_user()clanbite-social-kitRemove one user from the viewer's friend-request ignore list.Rest_Controller::require_edit_posts()clanbite-social-kitBlock editor: user can edit posts (search teams/players for block attributes).Rest_Controller::require_login()clanbite-social-kitRequire a logged-in user (REST permission callback).Rest_Controller::search_mentions()clanbite-social-kitSearch for mentionable users, teams, and groups.Rest_Controller::toggle_comment_reaction()clanbite-social-kitToggle a reaction on a comment.Rest_Controller::toggle_reaction()clanbite-social-kitToggle a reaction on a post (body: { "reaction_type": "like" }).Rest_Controller::update_comment()clanbite-social-kitEdit a comment ({ "content": "…" }): its author only.Rest_Controller::update_post()clanbite-social-kitUpdate a social post (author only).Rest_Controller::upload_media()clanbite-social-kitUpload one image for a future post (stored under uploads/clanbite/player/{user_id}/).Rest_Controller::viewer_can_view_post()clanbite-social-kitWhether a viewer may read a post, by ID (used by the shared reactions service for posts and comments).Rest_Controller::vote_poll()clanbite-social-kitCast a vote on a post poll (one vote per user; authors cannot vote on their own poll).Schema::create_tables()clanbite-social-kitCreate or upgrade tables using dbDelta.Schema::drop_tables()clanbite-social-kitDrop all Social Kit tables (plugin uninstall).Schema::maybe_upgrade()clanbite-social-kitCreate or upgrade tables when the stored DB version differs from this release.Social_Kit_Abilities::execute_create_comment()clanbite-social-kitSocial_Kit_Abilities::execute_create_post()clanbite-social-kitSocial_Kit_Abilities::execute_public_group()clanbite-social-kitExecute the public_group ability.Social_Kit_Abilities::execute_reaction_types()clanbite-social-kitExecute the reaction_types ability.Social_Kit_Abilities::execute_toggle_comment_reaction()clanbite-social-kitExecute the toggle_comment_reaction ability.Social_Kit_Abilities::execute_toggle_post_reaction()clanbite-social-kitExecute the toggle_post_reaction ability.Social_Kit_Abilities::execute_vote_poll()clanbite-social-kitExecute the vote_poll ability.Social_Kit_Abilities::permission_logged_in()clanbite-social-kitPermission callback: require logged-in user.Social_Kit_Abilities::register_abilities()clanbite-social-kitRegister Social Kit abilities with the abilities API.Social_Kit_Abilities::register_hooks()clanbite-social-kitRegister hooks for abilities integration.Social_Kit_Admin::get_defaults()clanbite-social-kitSocial_Kit_Admin::get_menu_title()clanbite-social-kitSocial_Kit_Admin::get_page_title()clanbite-social-kitSocial_Kit_Admin::get_sections()clanbite-social-kitSocial_Kit_Admin::render_page()clanbite-social-kitSocial_Kit_Admin::sanitize()clanbite-social-kitSocial_Kit::__construct()clanbite-social-kitConstructor — registers this extension with Clanbite via Skeleton.Social_Kit::avatar_html()clanbite-social-kitMarkup for a player, team or group avatar, built by Clanbite core's shared avatar component.Social_Kit::events_can_view_group_as_event()clanbite-social-kitAllow Social Kit groups to participate in core events/RSVP visibility checks.Social_Kit::events_group_attendees_visibility()clanbite-social-kitProvide attendees visibility for event_type=group.Social_Kit::events_group_can_view_attendees()clanbite-social-kitAllow group managers to view attendee lists when hidden.Social_Kit::exclude_social_kit_hidden_attachments_admin_list()clanbite-social-kitHide Social Kit uploads from the classic Media Library list table.Social_Kit::exclude_social_kit_hidden_attachments_rest()clanbite-social-kitHide Social Kit uploads from the REST attachments index (block editor, etc.).Social_Kit::exclude_social_kit_hidden_attachments()clanbite-social-kitKeep Social Kit uploads out of the Media Library grid / modal picker.Social_Kit::filter_group_display_avatar()clanbite-social-kitTell core's avatar component where a group's avatar lives (core ships no groups).Social_Kit::get_settings_admin()clanbite-social-kitSettings handler for the unified Clanbite React admin (own tab: root extension).Social_Kit::get_social_templates()clanbite-social-kitGet all FSE templates owned by the Social Kit extension.Social_Kit::localize_feed_contexts_for_editor()clanbite-social-kitGive the block editor the list of registered feed contexts (bundled and third-party).Social_Kit::players_are_friends()clanbite-social-kitAnswer core's clanbite_players_are_friends filter.Social_Kit::players_friend_ids()clanbite-social-kitAnswer core's clanbite_players_friend_ids filter with accepted friendships.Social_Kit::players_friends_available()clanbite-social-kitTell core that player friendships exist (when the friends feature is on).Social_Kit::register_block_category()clanbite-social-kitBlock category for Social Kit blocks in the editor.Social_Kit::register_blocks()clanbite-social-kitRegister compiled blocks from this plugin’s build/ directory.Social_Kit::register_rest_routes()clanbite-social-kitREST API: feed, posts, friendships, comments, reactions, groups.Social_Kit::register_social_templates()clanbite-social-kitRegister Groups FSE templates owned by this extension.Social_Kit::render_friendship_activity_card()clanbite-social-kitRender friendship activity card HTML.Social_Kit::render_group_activity_card()clanbite-social-kitRender group activity card HTML.Social_Kit::render_team_activity_card()clanbite-social-kitRender team activity card HTML.Social_Kit::run_installer()clanbite-social-kit{@inheritDoc}Social_Kit::run_updater()clanbite-social-kit{@inheritDoc}Social_Kit::run()clanbite-social-kit{@inheritDoc}Social_Kit::setup_extension()clanbite-social-kit{@inheritDoc}Social_Media_Upload::filter_upload_dir()clanbite-social-kitSocial_Media_Upload::handle_upload()clanbite-social-kitProcess $_FILES['file'] for the current user.Social_Media_Upload::upload_subdir_for_user()clanbite-social-kitRelative path under uploads (no leading/trailing slashes).Social_Media_Upload::user_owns_social_attachment()clanbite-social-kitWhether this attachment was uploaded for Social Kit and belongs to the user.Team_Mention_Settings::add_privacy_section()clanbite-social-kitAdd privacy section to team manage form.Team_Mention_Settings::register()clanbite-social-kitRegister hooks.Team_Mention_Settings::render_privacy_section()clanbite-social-kitRender the privacy section.Team_Mention_Settings::save_mention_permission()clanbite-social-kitSave mention permission when team is saved.
REST API 35
clanbite-social-kit/v1/comments/(?P\d+)clanbite-social-kitclanbite-social-kit/v1/comments/(?P\d+)/reactionsclanbite-social-kitclanbite-social-kit/v1/editor-search/playersclanbite-social-kitclanbite-social-kit/v1/editor-search/players/(?P\d+)clanbite-social-kitclanbite-social-kit/v1/editor-search/teamsclanbite-social-kitclanbite-social-kit/v1/editor-search/teams/(?P\d+)clanbite-social-kitclanbite-social-kit/v1/feedclanbite-social-kitclanbite-social-kit/v1/feeds/(?P[a-z][a-z0-9_-]*)/(?P\d+)/postsclanbite-social-kitclanbite-social-kit/v1/friendshipsclanbite-social-kitclanbite-social-kit/v1/friendships/(?P\d+)/acceptclanbite-social-kitclanbite-social-kit/v1/friendships/(?P\d+)/declineclanbite-social-kitclanbite-social-kit/v1/friendships/(?P\d+)/ignoreclanbite-social-kitclanbite-social-kit/v1/friendships/(?P\d+)/removeclanbite-social-kitclanbite-social-kit/v1/friendships/ignore/(?P\d+)/removeclanbite-social-kitclanbite-social-kit/v1/groupsclanbite-social-kitclanbite-social-kit/v1/groups/(?P[\d]+)clanbite-social-kitclanbite-social-kit/v1/groups/(?P[\d]+)/membersclanbite-social-kitclanbite-social-kit/v1/groups/(?P\d+)/postsclanbite-social-kitclanbite-social-kit/v1/link-previewclanbite-social-kitclanbite-social-kit/v1/mediaclanbite-social-kitclanbite-social-kit/v1/mentions/searchclanbite-social-kitclanbite-social-kit/v1/player-card/(?P\d+)clanbite-social-kitclanbite-social-kit/v1/postsclanbite-social-kitclanbite-social-kit/v1/posts/(?P\d+)clanbite-social-kitclanbite-social-kit/v1/posts/(?P\d+)/commentsclanbite-social-kitclanbite-social-kit/v1/posts/(?P\d+)/poll-voteclanbite-social-kitclanbite-social-kit/v1/posts/(?P\d+)/reactionsclanbite-social-kitclanbite-social-kit/v1/posts/(?P\d+)/viewclanbite-social-kitclanbite-social-kit/v1/posts/mediaclanbite-social-kitclanbite-social-kit/v1/reaction-typesclanbite-social-kitclanbite-social-kit/v1/reactions/(?P[a-z0-9_-]+)/(?P\d+)clanbite-social-kitclanbite-social-kit/v1/reactions/(?P[a-z0-9_-]+)/(?P\d+)/reactorsclanbite-social-kitclanbite-social-kit/v1/teams/(?P\d+)/postsclanbite-social-kitclanbite-social-kit/v1/user/groupsclanbite-social-kitclanbite-social-kit/v1/users/(?P\d+)/postsclanbite-social-kit
Settings 1
clanbite_social_kit_settingsclanbite-social-kit