labels.php
Provides site-facing labels and terminology without changing stable storage identifiers.
Responsibility#
Provides site-facing labels and terminology without changing stable storage identifiers.
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#
kindly-menu, popups, render, rest, theme-templates, theme.
WordPress hooks#
| Operation | Hook |
|---|---|
add_action |
admin_bar_menu |
add_action |
wp_enqueue_scripts |
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_label_where#
function cantata_edit_label_where( WP_Post $p ): string
Where a theme template or popup shows, in the Kindly screens' words; a draft's own rules while it is a draft.
Implementation connections: cantata_edit_menu_where, cantata_edit_popup_settings, cantata_edit_theme_where.
Source location: includes/labels.php:17.
cantata_edit_stage_label#
function cantata_edit_stage_label( WP_Post $p ): ?array
A theme template's or popup's label: [ kind, name, where, edit ], or null for anything else. Since 0.9.20 the name is plain text (cantata_edit_plain_text()), so a title with & or a dash is not shown as an HTML code.
Implementation connections: cantata_edit_label_where, cantata_edit_url.
Source location: includes/labels.php:28.
cantata_edit_site_labels#
function cantata_edit_site_labels(): array
The theme template drawing this request and the popups that load on it, for someone who manages them.
Implementation connections: cantata_edit_asset_ver, cantata_edit_can_popups, cantata_edit_can_themes, cantata_edit_is_built, cantata_edit_is_editing, cantata_edit_popup_settings, cantata_edit_popup_where, cantata_edit_stage_label.
Source location: includes/labels.php:35.