Kindly EditDocumentationTry the editor

advanced-php-api.php

Connects stronger PHP authoring permissions to automation. It resolves an explicit code owner, reads private source only for an authorized caller, and stages validated immutable code resources.

Responsibility#

Connects stronger PHP authoring permissions to automation. It resolves an explicit code owner, reads private source only for an authorized caller, and stages validated immutable code resources.

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.

abilities, advanced-code-api, element-php, linked-components, page-model, parts, rest, theme.

WordPress hooks#

Operation Hook
add_action wp_abilities_api_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_advanced_php_target#

function cantata_edit_advanced_php_target( array $in )

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_advanced_code_built, cantata_edit_ai_source, cantata_edit_can_author_php, cantata_edit_linked_render, cantata_edit_page_rev, cantata_edit_part_default, cantata_edit_part_draft, cantata_edit_part_post, cantata_edit_part_published.

Source location: includes/advanced-php-api.php:5.

cantata_edit_advanced_php_read#

function cantata_edit_advanced_php_read( array $in )

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

Source location: includes/advanced-php-api.php:27.

cantata_edit_advanced_php_write#

function cantata_edit_advanced_php_write( array $in )

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_advanced_php_read, cantata_edit_advanced_php_target, cantata_edit_ai_audit, cantata_edit_ai_can, cantata_edit_atomic, cantata_edit_element_php_normalize, cantata_edit_element_php_stage, cantata_edit_element_php_validate, cantata_edit_part_post, cantata_edit_part_rev, cantata_edit_rest_save.

Source location: includes/advanced-php-api.php:48.

About this page

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

Type a word or phrase to search the full documentation.