Clanbite Since 1.5.0
class Messages_Settings extends Kernowdev\Clanbite\Extensions\Abstract_SettingsCustom wording stored in Messages_Settings::OPTION_KEY, keyed by clanbite_message_field_id().
An empty value means "use the default", so defaults stay translatable and keep improving with plugin updates.
class
- Full name
Kernowdev\Clanbite\Admin\Messages_Settings- Extends
Kernowdev\Clanbite\Extensions\Abstract_Settings
Constants
| Name | Value | Description |
|---|---|---|
OPTION_KEY | 'clanbite_messages_settings' | Option that stores the custom wording. |
Methods
export_rest_schema_for_groups()REST schema (sections and fields) for some message groups only.get_defaults()Every message starts empty (= the registered default).get_menu_title()Menu title for the legacy standalone settings page (if enabled).get_page_title()Browser title for the legacy standalone settings page (if enabled).get_sections()One section per message group, one field per registered message.render_page()Render the classic PHP settings page shell (submenu mode only).sanitize_message()Sanitize a custom message: plain text, no markup, a sensible length.save_from_input()Save only the messages that were sent, on top of what is already stored.
Defined in inc/admin/class-messages-settings.php
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |