I’m working on a project where we have lots of layouts for Flexible content.
I’d like to add a tab called “Member Access” to all layout types so that content can be displayed to or hidden from groups of users.
So for each layout, we would want to show it to admins but hide it from logged-out users.
We’re registering all the layouts with PHP, and rather than having to copy+paste code for existing layouts (plus remember to add it to the new ones), we’d like to loop through and add the “Member access” tab and options to each layout.
Is this possible?