Skip to content
Kaspars Dambis edited this page Nov 21, 2018 · 3 revisions

Notes

  • Set a blockContextId property to all blocks with active display context. Use that to reference the display context.

  • Store the block context in the post meta of a custom post type? Or in the post meta of the particular post (would need a custom query for fetching re-usable block display context)?

  • Use the render_block filter to remove the block output when disabled. Note that this filter is available only in WP core and not in the Gutenberg plugin.

Clone this wiki locally