[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/ -> tab-list.php (summary)

Tab List Block

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

Defines 2 functions

  block_core_tab_list_render_callback()
  register_block_core_tab_list()

Functions
Functions that are not part of a class:

block_core_tab_list_render_callback( array $attributes, string $content, \WP_Block $block )   X-Ref
Render callback for core/tab-list.

Injects IAPI directives into the saved button HTML. The buttons already
carry color/border/padding styles from save.js; this callback adds
tab-specific attributes (id, aria-controls, context) and interactivity
directives using data from the tabs-list context.

param: array     $attributes Block attributes.
param: string    $content    Block content (rendered buttons from save.js).
param: \WP_Block $block      WP_Block instance.
return: string Updated HTML.

register_block_core_tab_list()   X-Ref
Registers the `core/tab-list` block on the server.




Generated : Wed Jul 15 08:20:16 2026 Cross-referenced by PHPXref