gutenberg_serialize_block
gutenberg_serialize_block
Appears in: gutenberg.16.5.0, gutenberg.16.5.1, gutenberg.16.6.0, gutenberg.16.8.1, gutenberg.16.9.0, gutenberg.17.0.2, gutenberg.17.1.2, gutenberg.17.2.3, gutenberg.17.3.0, gutenberg.17.4.1, gutenberg.17.5.0, gutenberg.17.5.2, gutenberg.17.6.5, gutenberg.17.7.0, gutenberg.17.8.0, gutenberg.17.8.2, gutenberg.17.9.0, gutenberg.18.2.0, gutenberg.18.5.0, gutenberg.18.6.1, gutenberg.18.7.1, gutenberg.18.9.0
Hook Type: filter
See hook in action
Displaying hooks found in version: gutenberg.18.9.0apply_filters('gutenberg_serialize_block') is found 1 times:
- /lib/compat/wordpress-6.4/block-hooks.php line 341
* Filters a parsed block before it is serialized. * * @param array $block The block to be serialized. */ $block = apply_filters( 'gutenberg_serialize_block', $block ); $index = 0; foreach ( $block['innerContent'] as $chunk ) { if ( is_string( $chunk ) ) { $block_content .= $chunk; } else { // Compare to WP_Block::render().