[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/block-supports/ -> anchor.php (summary)

Anchor block support flag.

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

Defines 2 functions

  wp_register_anchor_support()
  wp_apply_anchor_support()

Functions
Functions that are not part of a class:

wp_register_anchor_support( WP_Block_Type $block_type )   X-Ref
Registers the anchor block attribute for block types that support it.

param: WP_Block_Type $block_type Block Type.

wp_apply_anchor_support( WP_Block_Type $block_type, array $block_attributes )   X-Ref
Add the anchor id to the output.

param: WP_Block_Type        $block_type       Block Type.
param: array<string, mixed> $block_attributes Block attributes.
return: array<string, string> Attributes with block anchor id.



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