Snippet to allow editors to edit Overlay Panels

  • Hello! Is there a snippet available to grant overlay create/edit/delete permissions for a user with role Editor? Thanks!

  • Hi there,

    Yes, you can use this snippet:

    add_filter('generateblocks_overlays_capability', function ($capability, $context) {
        if ('manage' === $context) {
            return 'edit_pages';
        }
        return $capability;
    }, 10, 2);
  • Alvind, thanks as always to you and the team for an effective answer and solution, provided quickly as well 🙂 Ya’ll rock!!

  • You’re welcome, glad to hear that! 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.