• Hi,

    I’m using Snow Monkey Editor and trying to understand how the “Hide by user roles” feature works with the render_block filter hook. Specifically, I want to hide certain blocks for non-admin users.

    Here’s what I’ve tried:

    I added the block and went to the settings in the inspector to assign roles, but it doesn’t seem to take effect unless I manually edit the code.
    I’m unclear on how exactly I should set up the filter. Should I add the render_block hook directly to my theme’s functions.php file? If so, could you share an example of what this looks like?
    For instance, I’m trying to hide a “Text Badge” block from editors, but the block still shows up for them no matter what settings I use in the inspector. Is this a limitation of the plugin, or am I missing something in the configuration?

    It would be great if you could point me to any documentation or provide a quick code snippet for setting this up properly.

    Thanks for your help!

  • You must be logged in to reply to this topic.