providers.php
Registers WordPress-native live sources such as posts, menus, search, login, site identity, author data, and widget areas with explicit accepted fields.
Responsibility#
Registers WordPress-native live sources such as posts, menus, search, login, site identity, author data, and widget areas with explicit accepted fields.
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.
Literal option and cache keys#
page_on_front. 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_filter |
cantata_edit_live_sources |
add_action |
init |
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_provider_post_types#
function cantata_edit_provider_post_types(): array
Public post types a Posts element may list: [ name => label ].
Source location: includes/providers.php:17.
cantata_edit_provider_categories#
function cantata_edit_provider_categories(): array
Categories to narrow a list of posts by: '' (all) and up to 60 categories with posts in them.
Source location: includes/providers.php:27.
cantata_edit_provider_yes_no#
function cantata_edit_provider_yes_no(): array
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_provider_categories, cantata_edit_provider_post_types.
Source location: includes/providers.php:34.
cantata_edit_provider_post#
function cantata_edit_provider_post(): ?WP_Post
The post the providers describe: the page being viewed or edited.
Source location: includes/providers.php:161.
cantata_edit_provider_posts#
function cantata_edit_provider_posts( $atts ): 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_provider_post, cantata_edit_provider_post_types.
Source location: includes/providers.php:179.
cantata_edit_provider_menu#
function cantata_edit_provider_menu( $atts ): 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.
Source location: includes/providers.php:228.
cantata_edit_provider_search#
function cantata_edit_provider_search( $atts ): 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.
Source location: includes/providers.php:237.
cantata_edit_provider_login#
function cantata_edit_provider_login( $atts ): 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_provider_post.
Source location: includes/providers.php:249.
cantata_edit_provider_sitemap#
function cantata_edit_provider_sitemap( $atts ): 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_provider_post_types.
Source location: includes/providers.php:264.
cantata_edit_provider_breadcrumbs#
function cantata_edit_provider_breadcrumbs( $atts ): 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_provider_post.
Source location: includes/providers.php:279.
cantata_edit_provider_site#
function cantata_edit_provider_site( $atts ): 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.
Source location: includes/providers.php:295.
cantata_edit_provider_post_field#
function cantata_edit_provider_post_field( $atts ): 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_provider_post.
Source location: includes/providers.php:310.
cantata_edit_provider_author#
function cantata_edit_provider_author( $atts ): 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_provider_post.
Source location: includes/providers.php:343.
cantata_edit_provider_sidebar#
function cantata_edit_provider_sidebar( $atts ): 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.
Source location: includes/providers.php:353.