Kindly EditDocumentationTry the editor

page-sources.php

Reports the sources that contribute to the visible page, including templates and shared records, without mutating them.

Responsibility#

Reports the sources that contribute to the visible page, including templates and shared records, without mutating them.

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.

popups, render, rest, theme-templates, theme.

WordPress hooks#

Operation Hook
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_page_sources#

function cantata_edit_page_sources(): array

What on the page being edited comes from a theme template or a popup: [ kind, id, title, edit ]. Since 0.9.20 each title is plain text (cantata_edit_plain_text()).

Implementation connections: cantata_edit_asset_ver, cantata_edit_can_popups, cantata_edit_can_themes, cantata_edit_is_editing, cantata_edit_popup_settings, cantata_edit_popup_where, cantata_edit_theme_for_request, cantata_edit_url.

Source location: includes/page-sources.php:14.

About this page

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

Type a word or phrase to search the full documentation.