Kindly EditDocumentationTry the editor

admin.php

Adds WordPress administration entry points and row actions. It routes an existing or new page into the appropriate editing experience and communicates whether a page already has a Kindly layout.

Responsibility#

Adds WordPress administration entry points and row actions. It routes an existing or new page into the appropriate editing experience and communicates whether a page already has a Kindly layout.

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.

editor-mode, render, rest.

WordPress hooks#

Operation Hook
add_action admin_bar_menu
add_filter page_row_actions
add_filter post_row_actions
add_filter display_post_states
add_action admin_bar_menu
add_action load-post.php
add_action edit_form_after_title
add_action admin_menu
add_action load-pages_page_cantata-edit-new
add_action admin_post_cantata_edit_new_page
add_action admin_post_cantata_edit_start
add_action admin_notices
add_action enqueue_block_editor_assets

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

function cantata_edit_start_on_page( int $id )

A page that isn't built yet (including a brand-new one): build it for the page editor, and return its ?edit address.

Implementation connections: cantata_edit_can_build_post, cantata_edit_is_built, cantata_edit_url.

Source location: includes/admin.php:109.

About this page

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

Type a word or phrase to search the full documentation.