Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

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.