| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Ipsum functions and definitions.
| File Size: | 355 lines (12 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| ipsum_register_editor_styles() X-Ref |
| Adds style.css and editor-style.css as editor stylesheets. return: void |
| ipsum_add_theme_support() X-Ref |
| Adds HTML5 support for navigation widgets, so their lists render inside a nav element. Block themes already get core's other HTML5 features, and this call merges with them. return: void |
| ipsum_enqueue_styles() X-Ref |
| Enqueues styles. return: void |
| ipsum_comments_cta_binding( $source_args, $block_instance ) X-Ref |
| Returns the comments call to action for the current post, or nothing when comments are closed, since readers can no longer comment. param: array<string, mixed> $source_args Block binding source arguments. Unused. param: WP_Block $block_instance The block instance. return: string|null The call to action text, an empty string when comments |
| ipsum_register_block_bindings() X-Ref |
| Registers the comments call-to-action block binding source. return: void |
| ipsum_sidebar_template_types( $default_template_types ) X-Ref |
| Registers the sidebar template variants as template types, so they are listed with proper titles and descriptions in the Site Editor. param: array<string, array<string, string>> $default_template_types The default template types, keyed by return: array<string, array<string, string>> The template types, with the sidebar variants added. |
| ipsum_register_pattern_categories() X-Ref |
| Registers the pattern categories the theme's patterns use beyond core's. return: void |
| ipsum_search_aria_label_support( $metadata ) X-Ref |
| Lets the Search block take an ARIA label, so its search landmark can be named. Every Search block is a search landmark, and a page can hold more than one, such as the search bar next to the search call to action, or next to the search in the navigation overlay. Repeated landmarks need unique names, but the block has no ariaLabel support of its own, so this turns on core's and the patterns set the name. param: array<string, mixed> $metadata Metadata for the block type being registered. return: array<string, mixed> The block metadata, with ARIA label support on the Search block. |
| ipsum_register_block_styles() X-Ref |
| Registers block style variations. The Evening code style keeps the Evening palette's literals on purpose, so the block reads as a dark slab under every style variation. Each style's CSS is an inline style, as in the default themes. Row Hover can't move to styles/blocks/, because a theme.json css string cannot hold its at-rules and selector lists. return: void |
| Generated : Wed Nov 11 08:20:02 2026 | Cross-referenced by PHPXref |