[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

Block level presets support.

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

Defines 3 functions

  _wp_get_presets_class_name()
  _wp_add_block_level_presets_class()
  _wp_add_block_level_preset_styles()

Functions
Functions that are not part of a class:

_wp_get_presets_class_name( $block )   X-Ref
Get the class name used on block level presets.

param: array $block Block object.
return: string      The unique class name.

_wp_add_block_level_presets_class( $block_content, $block )   X-Ref
Update the block content with block level presets class name.

param: string $block_content Rendered block content.
param: array  $block         Block object.
return: string                Filtered block content.

_wp_add_block_level_preset_styles( $pre_render, $block )   X-Ref
Render the block level presets stylesheet.

param: string|null $pre_render   The pre-rendered content. Default null.
param: array       $block The block being rendered.
return: null



Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref