class Social_Kit extends Kernowdev\Clanbite\Extensions\SkeletonOfficial Clanbite extension (cp_social_kit) shipped in this plugin; requires Players (cp_players).
Registers on clanbite_official_registered_extensions so core can validate the class against its official whitelist while Loader::get_core_bundled_extension_slugs() keeps the **Core** badge off this slug.
class final
- Full name
Kernowdev\ClanbiteSocialKit\Extension\Social_Kit- Extends
Kernowdev\Clanbite\Extensions\Skeleton
Methods
__construct()Constructor — registers this extension with Clanbite via Skeleton.avatar_html()Markup for a player, team or group avatar, built by Clanbite core's shared avatar component.events_can_view_group_as_event()Allow Social Kit groups to participate in core events/RSVP visibility checks.events_group_attendees_visibility()Provide attendees visibility for event_type=group.events_group_can_view_attendees()Allow group managers to view attendee lists when hidden.exclude_social_kit_hidden_attachments_admin_list()Hide Social Kit uploads from the classic Media Library list table.exclude_social_kit_hidden_attachments_rest()Hide Social Kit uploads from the REST attachments index (block editor, etc.).exclude_social_kit_hidden_attachments()Keep Social Kit uploads out of the Media Library grid / modal picker.filter_group_display_avatar()Tell core's avatar component where a group's avatar lives (core ships no groups).get_settings_admin()Settings handler for the unified Clanbite React admin (own tab: root extension).get_social_templates()Get all FSE templates owned by the Social Kit extension.localize_feed_contexts_for_editor()Give the block editor the list of registered feed contexts (bundled and third-party).players_are_friends()Answer core's clanbite_players_are_friends filter.players_friend_ids()Answer core's clanbite_players_friend_ids filter with accepted friendships.players_friends_available()Tell core that player friendships exist (when the friends feature is on).register_block_category()Block category for Social Kit blocks in the editor.register_blocks()Register compiled blocks from this plugin’s build/ directory.register_rest_routes()REST API: feed, posts, friendships, comments, reactions, groups.register_social_templates()Register Groups FSE templates owned by this extension.render_friendship_activity_card()Render friendship activity card HTML.render_group_activity_card()Render group activity card HTML.render_team_activity_card()Render team activity card HTML.run_installer(){@inheritDoc}run_updater(){@inheritDoc}run(){@inheritDoc}setup_extension(){@inheritDoc}
Defined in inc/Extension/Social_Kit.php
Changelog
| Version | Description |
|---|---|
| 1.6.4 | Updated. |
| 1.6.2 | Updated. |