Adding custom link text to a URLInputButton

I think the solution is clearer, and already hinted at in your attributes Add a new input for the text, and set its value to the btnText attributes value, allow it to update that attribute on change when you set the URL, don’t use (post && post.title) || ‘Click here’ instead use (post && post.title) … Read more

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