class Abstract_SettingsWordPress Settings API wrapper for Clanbite option buckets.
Dynamic filter/action names are built with self::clanbite_extension_settings_hook_tag(). Each full tag is {option_key}_{suffix} where option_key is a registered clanbite_* option name and suffix is one of the HOOK_TAG_* constants (always starting with clanbite_).
class abstract
- Full name
Kernowdev\Clanbite\Extensions\Abstract_Settings
Methods
__construct()Hooks the settings into WordPress (see self::hooks()).clanbite_extension_settings_hook_tag()Builds {option_key}_{$suffix} for Clanbite settings filters/actions.export_field_for_rest_schema()Export one field definition for the React admin (supports nested repeater fields).export_rest_schema()Schema for the React settings UI (sections + fields).get_all()Get every setting merged over the defaults.get_defaults()Default values for every setting, keyed by field id.get_flat_fields()Flatten all sections into a single field-id keyed map.get_menu_title()Menu label for the settings page.get_option_key()Option name used in the database.get_page_title()Page heading shown on the settings screen.get_resolved_sections_with_fields()Sections and fields after the same filters used for Settings API registration.get_sections()Section and field definitions.get()Get a single setting.hooks()Register the admin_menu and admin_init callbacks.register_page()Register the optional classic submenu page under Clanbite.register_settings()Register the option and its sections/fields with the Settings API.render_field()Render one settings field (checkbox, textarea, select, otherwise a text input).render_page()Output the classic settings page (used only when the standalone submenu is registered).render_settings_page()Render a standard settings page shell.sanitize()Sanitize a submitted settings payload field by field.save_from_input()Validate and persist settings from a REST request body.
Defined in inc/extensions/class-extension-admin-settings.php