gutenberg_serialize_block

gutenberg_serialize_block

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: gutenberg.18.9.0

apply_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().
    

See this hook used in plugins: