How to extract ‘intro’ block from page content, but later strip from page main content

For anyone interested, with the suggestion from @TomJNowell I managed to retry using the render_block filter and simplify the solution to the problem: Callback function (replacing example_filter_the_page_content() from my initial post): /** * Callback function used to skip intro section block from rendering. * * To be used as callback for the `render_block` filter. */ … Read more