Content Restriction / Pre-generation permissions
-
I’ve opened an inquiry with the UltimateMember plugin devs about how to enable GenerateBlocks with their great content restriction features.
Specifically, at a post, page, block level (for Container, or QueryLoop, etc) they can restrict access to a block based on user roles and other settings. While their settings UI is available in the editor on GB blocks, at runtime the GB blocks (understandably) are not checking the UM permissions, and generate regardless of those settings. Their checking only seems to work for default Gutenberg blocks … I don’t know how yet, that’s the reason for the inquiry.
I’m hoping GB devs will keep an eye on that thread, participate, and consider incorporating that fine functionality. As noted there, I don’t expect any plugin to support any other plugin like this. Rather, if I know there are pre-and/or-post generation hooks for GB blocks, I can use those to invoke permissions hooks in UM, and ideally cancel the generation of a GB block.
Please advise if that kind of pre-generation “short-circuit” hook is available yet, or if it’s planned.
Thanks!
- You must be logged in to reply to this topic.