Kindly EditDocumentationTry the editor

branding.php

Resolves the public product identity and optional license-issued branding while retaining the plugin’s stable internal identifiers.

Responsibility#

Resolves the public product identity and optional license-issued branding while retaining the plugin’s stable internal 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.

license.

WordPress hooks#

Operation Hook
add_filter gettext_cantata-edit, gettext_with_context_cantata-edit, ngettext_cantata-edit, ngettext_with_context_cantata-edit
add_action wp_enqueue_scripts, admin_enqueue_scripts
add_filter all_plugins
add_filter plugin_row_meta

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_branding#

function cantata_edit_branding(): array

Safe public branding values, with Kindly Edit as the default. Since 0.12.1 the default provider is Kindly Edit at https://kindlyedit.com, which is also the plugin header's author and the address WordPress shows in update details.

Implementation connections: cantata_edit_license.

Source location: includes/branding.php:13.

cantata_edit_product_name#

function cantata_edit_product_name(): 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_branding.

Source location: includes/branding.php:41.

cantata_edit_is_white_label#

function cantata_edit_is_white_label(): bool

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_branding.

Source location: includes/branding.php:45.

cantata_edit_brand_text#

function cantata_edit_brand_text( string $text ): string

Since 0.12.2. On a white-labeled installation, replaces "Kindly Edit" or "Kindly", as a word of its own, with the approved product name; every other installation gets the text back unchanged. Code names, addresses and file names that contain the word are left alone. It runs on every wording in the plugin's own text domain through the four gettext filters above, so another plugin's wordings are never touched.

Implementation connections: cantata_edit_is_white_label, cantata_edit_product_name.

Source location: includes/branding.php:59.

cantata_edit_brand_script#

function cantata_edit_brand_script(): string

Since 0.12.2. The same rule for the scripts: a short inline script that adds the matching wp.i18n filters for the cantata-edit text domain and provides window.KindlyBrand.text(). Empty on an installation without white-labeling.

Source location: includes/branding.php:81.

cantata_edit_brand_names#

function cantata_edit_brand_names(): void

Since 0.12.2. Prints the brand script once, right after wp-i18n, on the page editor and the admin screens.

Implementation connections: cantata_edit_brand_script.

Source location: includes/branding.php:92.

About this page

Documents Kindly Edit 0.9.16. Source: includes/branding.php. Theme choices and account permissions can change which controls appear.

Type a word or phrase to search the full documentation.