settings.php
Renders administrator settings and handles nonce-protected license activation, release channel, update checks, and AI access preferences.
Responsibility#
Renders administrator settings and handles nonce-protected license activation, release channel, update checks, and AI access preferences.
This is an implementation reference for the released 0.9.13 module. Internal PHP helpers are not a compatibility promise for third-party callers. Prefer the documented REST, Abilities, theme, and filter contracts.
Related modules#
abilities, branding, kindly-menu, license, theme, updater.
Module constants#
const CANTATA_EDIT_CONTRACT = 1;
These values describe this release. Defined configuration constants and generated identifiers can have different ownership; do not edit stored values directly without following the corresponding workflow.
Literal option and cache keys#
cantata_edit_ai, cantata_edit_ai_audit, cantata_edit_channel, cantata_edit_license_checked, cantata_edit_settings_error, date_format, time_format, update_plugins. These are direct literal keys found in this module; dynamically constructed keys and metadata constants are covered by the storage reference.
WordPress hooks#
| Operation | Hook |
|---|---|
add_action |
admin_menu |
add_filter |
plugin_action_links_ |
add_action |
admin_post_cantata_edit_settings |
add_action |
admin_notices |
add_action |
admin_notices |
add_action and add_filter subscribe to a hook; do_action and apply_filters expose a hook. A subscription is not itself a new extension API. Dynamic hook names are not included in this literal inventory.
Function and method reference#
cantata_edit_settings_url#
function cantata_edit_settings_url(): string
Internal implementation helper in this module. Its name and signature identify the operation and accepted PHP values; it is not a standalone authenticated endpoint.
Implementation connections: cantata_edit_latest_release, cantata_edit_license_activate, cantata_edit_license_deactivate, cantata_edit_menu_parent, cantata_edit_product_name.
Source location: includes/settings.php:16.
cantata_edit_masked_key#
function cantata_edit_masked_key( string $key ): string
The key as it's shown back: enough to recognise it, not enough to copy it.
Source location: includes/settings.php:63.
cantata_edit_settings_page#
function cantata_edit_settings_page(): void
Internal implementation helper in this module. Its name and signature identify the operation and accepted PHP values; it is not a standalone authenticated endpoint.
Implementation connections: cantata_edit_ai_enabled, cantata_edit_branding, cantata_edit_config, cantata_edit_is_white_label, cantata_edit_latest_release, cantata_edit_license, cantata_edit_license_allows_editing, cantata_edit_license_error_text, cantata_edit_license_state, cantata_edit_masked_key, cantata_edit_product_name, cantata_edit_settings_url, cantata_edit_update_channel.
Source location: includes/settings.php:67.