• I’m using the GenerateBlocks plugin, which provides additional features over standard Gutenberg blocks. Specifically, they have a Container block which is equivalent to the Group/Div – with many more detailed features.

    UM Content Restriction is available for these blocks in the editor, but at render time the restrictions aren’t processed.

    This is not unique to that plugin, I’m seeing this on others as well. I see there have been requests in this forum for Elementor and other plugin support. I don’t expect UM to support other plugins, or for other plugins to support UM. Rather, I think as long as each plugin supports pre-and-post render hooks that we users can make our own refinements and then publish our solutions for others.

    What can I/we tell the authors of other plugins to allow their blocks to process content restrictions? I suspect they need to invoke a hook and then exit on a false response?

    As noted above, to avoid the need for every block developer to be aware of this plugin, I’d like to hook their functionality, and then call to UM to determine restrictions for a simple true/false : continue rendering or not.
    Where in the VAST and Amazing gallery of the UM API, FAQs, and Docs, can I find code or details about exactly how to do this?

    Thanks!

    • This topic was modified 8 months, 2 weeks ago by Tony G.
  • The topic ‘HowTo? Content Restrict custom block’ is closed to new replies.