| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Server-side rendering of the `core/image` block.
| File Size: | 385 lines (15 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| render_block_core_image( $attributes, $content, $block ) X-Ref |
| Renders the `core/image` block on the server, adding a data-id attribute to the element if core/gallery has added on pre-render. param: array $attributes The block attributes. param: string $content The block content. param: WP_Block $block The block object. return: string The block content with the data-id attribute added. |
| block_core_image_extract_empty_figcaption_element() X-Ref |
| Return input span for an empty FIGCAPTION element. Returns span of input for an empty FIGCAPTION, if currently matched on a FIGCAPTION opening tag and if the element is properly closed and empty. return: WP_HTML_Span|false Span of input if the element is empty; otherwise false. |
| block_core_image_get_lightbox_settings( $block ) X-Ref |
| Adds the lightboxEnabled flag to the block data. This is used to determine whether the lightbox should be rendered or not. param: array $block Block data. return: array|null Filtered block data. |
| block_core_image_render_lightbox( $block_content, $block ) X-Ref |
| Adds the directives and layout needed for the lightbox behavior. param: string $block_content Rendered block content. param: array $block Block object. return: string Filtered block content. |
| block_core_image_print_lightbox_overlay() X-Ref |
| register_block_core_image() X-Ref |
| Registers the `core/image` block on server. |
| Generated : Tue May 5 08:20:14 2026 | Cross-referenced by PHPXref |