Clanbite Since 1.6.5
class Events_Admin extends Kernowdev\Clanbite\Extensions\Abstract_SettingsEvents settings (clanbite_events_settings): the site-wide switches for scheduled events and the profile tabs the extension adds.
One home for everything Events: the switch that used to sit under General and the three "Events tab" toggles that used to be scattered over the Players, Teams and Groups tabs. Read them with the clanbite_events_*() helpers, never the option directly: the helpers also understand the old locations until a site has saved this tab.
class
- Full name
Kernowdev\Clanbite\Extensions\Events_Admin- Extends
Kernowdev\Clanbite\Extensions\Abstract_Settings
Constants
| Name | Value | Description |
|---|---|---|
OPTION_KEY | 'clanbite_events_settings' | Option that stores these settings. |
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).
Defined in inc/extensions/events/class-extension-events-admin.php
Changelog
| Version | Description |
|---|---|
| 1.6.5 | Introduced. |