wp_restore_image_outer_container
- %1$s is private and should not be used in themes or plugins directly.
wp_restore_image_outer_container ( $block_content, $block )
Access:Parameters:- (string) block_content Rendered block content.
- (array) block Block object.
Returns:- (string) Filtered block content.
Defined at: - Introduced in WordPress: 6.0.0
- Deprecated in WordPress: —
Description
For themes without theme.json file, make sure
to restore the outer div for the aligned image block
to avoid breaking styles relying on that div.