[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/build/pages/site-editor/ -> page.php (summary)

Page: site-editor Auto-generated by build process. Do not edit this file manually.

File Size: 321 lines (10 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions

  register_site_editor_route()
  register_site_editor_menu_item()
  get_site_editor_routes()
  get_site_editor_menu_items()
  site_editor_preload_data()
  site_editor_render_page()
  site_editor_intercept_render()

Functions
Functions that are not part of a class:

register_site_editor_route( $path, $content_module = null, $route_module = null )   X-Ref
Register a route for the site-editor page.

param: string      $path           Route path (e.g., '/types/$type/edit/$id').
param: string|null $content_module Script module ID for content (stage/inspector).
param: string|null $route_module   Script module ID for route lifecycle hooks.

register_site_editor_menu_item( $id, $label, $to, $parent_id = '', $parent_type = '' )   X-Ref
Register a menu item for the site-editor page.

param: string $id          Menu item ID.
param: string $label       Display label.
param: string $to          Route path to navigate to.
param: string $parent_id   Optional. Parent menu item ID.
param: string $parent_type Optional. Parent type: 'drilldown' or 'dropdown'.

get_site_editor_routes()   X-Ref
Get all registered routes for the site-editor page.

return: array Array of route objects.

get_site_editor_menu_items()   X-Ref
Get all registered menu items for the site-editor page.

return: array Array of menu item objects.

site_editor_preload_data()   X-Ref
Preload REST API data for the site-editor page.
Automatically called during page rendering.


site_editor_render_page()   X-Ref
Render the site-editor page.
Call this function from add_menu_page or add_submenu_page.


site_editor_intercept_render()   X-Ref
No description



Generated : Thu Jan 15 08:20:04 2026 Cross-referenced by PHPXref