Clanbite Social Kit Since 1.5.0
class Mention_PickerLoads assets/js/clanbite-mentions-picker.js for signed-in members when @mentions are on.
Other plugins (Forums, themes) attach their own fields: add a selector with the filter clanbite_social_kit_mention_picker_selectors or the attribute data-cp-mentions on the field, and call clanbite_social_kit_enqueue_mention_picker() on pages that show it.
class final
- Full name
Kernowdev\ClanbiteSocialKit\Social\Mention_Picker
Constants
| Name | Value | Description |
|---|---|---|
HANDLE | 'clanbite-social-kit-mentions' | Script and style handle. |
Methods
enqueue()Enqueue the picker for the current member (nothing for visitors or when @mentions are off).maybe_enqueue()Print the picker on pages that show the social feed or composer.register_assets()Register the script and style (not yet printed).register()Register hooks.
Defined in inc/Social/Mention_Picker.php
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |