[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

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

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

Defines 2 functions

  block_core_details_set_img_fetchpriority_low()
  register_block_core_details()

Functions
Functions that are not part of a class:

block_core_details_set_img_fetchpriority_low( $block_content, array $block )   X-Ref
Sets fetchpriority="low" on all IMG tags within the collapsed Details block.

Images in a collapsed Details block are hidden until the block is expanded, so they should
not compete with any resources in the critical rendering path, such as the LCP element image.

return: string Modified HTML with fetchpriority="low" on all IMG tags when the showContent attribute is false.
param: string $block_content The block content.
param: array  $block         The full block, including name and attributes.

register_block_core_details()   X-Ref
Registers the `core/details` block on server.




Generated : Sat Jun 13 09:38:55 2026 Cross-referenced by PHPXref