[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/ -> avatar.php (summary)

Server-side rendering of the `core/avatar` block.

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

Defines 3 functions

  render_block_core_avatar()
  get_block_core_avatar_border_attributes()
  register_block_core_avatar()

Functions
Functions that are not part of a class:

render_block_core_avatar( $attributes, $content, $block )   X-Ref
Renders the `core/avatar` block on the server.

return: string Return the avatar.
param: array    $attributes Block attributes.
param: string   $content    Block default content.
param: WP_Block $block      Block instance.

get_block_core_avatar_border_attributes( $attributes )   X-Ref
Generates class names and styles to apply the border support styles for
the Avatar block.

return: array The border-related classnames and styles for the block.
param: array $attributes The block attributes.

register_block_core_avatar()   X-Ref
Registers the `core/avatar` block on the server.




Generated : Tue Oct 29 08:20:01 2024 Cross-referenced by PHPXref