class Admin extends Kernowdev\Clanbite\Extensions\Abstract_SettingsNotifications extension settings for the unified React admin (clanbite_notifications_settings).
class
- Full name
Kernowdev\Clanbite\Extensions\Notifications\Admin- Extends
Kernowdev\Clanbite\Extensions\Abstract_Settings
Constants
| Name | Value | Description |
|---|---|---|
OPTION_KEY | 'clanbite_notifications_settings' | Option that stores these settings (also read by clanbite_get_toast_settings() for the shared popups). |
Methods
get_defaults()Default option values before registration and filters run.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()Section and field definitions for the settings API / REST schema export.render_page()Render the classic PHP settings page shell (submenu mode only).sanitize_toast_duration_custom()Sanitize the custom popup length: whole seconds within clanbite_toast_custom_duration_range().sanitize_toast_duration()Sanitize the popup length: one of the offered values (seconds, custom or 0 = until closed), otherwise the default.sanitize_toast_position()Sanitize the popup position: one of the known positions, otherwise the default.
Defined in inc/extensions/notifications/class-extension-notifications-admin.php
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Updated. |