[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

Aria label block support flag.

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

Defines 2 functions

  wp_register_aria_label_support()
  wp_apply_aria_label_support()

Functions
Functions that are not part of a class:

wp_register_aria_label_support( $block_type )   X-Ref
Registers the aria-label block attribute for block types that support it.

param: WP_Block_Type $block_type Block Type.

wp_apply_aria_label_support( $block_type, $block_attributes )   X-Ref
Add the aria-label to the output.

param: WP_Block_Type $block_type       Block Type.
param: array         $block_attributes Block attributes.
return: array Block aria-label.



Generated : Sun Mar 9 08:20:01 2025 Cross-referenced by PHPXref