[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/ipsum/ -> functions.php (summary)

Ipsum functions and definitions.

File Size: 208 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 9 functions

  ipsum_register_editor_styles()
  ipsum_add_theme_support()
  ipsum_enqueue_styles()
  ipsum_comments_cta_binding()
  ipsum_register_block_bindings()
  ipsum_sidebar_template_types()
  ipsum_register_pattern_categories()
  ipsum_search_aria_label_support()
  ipsum_register_block_styles()

Functions
Functions that are not part of a class:

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.

return: string The call to action text.
param: array    $source_args    Block binding source arguments.
param: WP_Block $block_instance The block instance.

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.

return: array The template types, with the sidebar variants added.
param: array $default_template_types The default template types.

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.

return: array The block metadata, with ARIA label support on the Search block.
param: array $metadata Metadata for the block type being registered.

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.

return: void



Generated : Thu Oct 22 08:20:34 2026 Cross-referenced by PHPXref