As I look to expand my Bricks-based site portfolio, I’m hoping to find a way to set settings globally via hooks / filters / code snippets. Is there a way, for example, to use a filter to set the CSS type (i.e. external vs default) as well as things like setting the Google Maps API key across all sites easily like that, for example?
Currently using filters for other products like SEOPress and WP Rocket to keep some level of consistency across the 20+ websites I manage, and I can’t quite find a way to do that yet in Bricks. Is this possible and I’ve just missed it perhaps? I see some filters in the Dev docs but they seem more focused on elements and styles than the actual Settings of Bricks Builder.
Hi Omega. Just edited the title to be a bit clearer. I had actually meant the ability to force some settings in order to keep them consistent across sites rather than just importing/exporting settings as that’s a tedious and manual process when managing many sites in the long-run. Hooks/filters make it easy to keep some consistency from a central point (i.e. I use MainWP to manage all the code snippets on my client sites which means when I need to make a change to a certain setting in SEOPress for example that I want to be done across all my client sites I just have to make the change in one location rather than logging into every single site).
Much like how I use code snippets with filters/hooks for WP Rocket for example in order to ensure all my client sites have the same minimum setup (i.e. consistent cache lifespan, mobile cache, DB cleaning schedule, etc) it’d be great to have something similar for Bricks. And since Bricks is apparently very dev-friendly, it makes me think it would be wise for some extra hooks/filters to be added for the Bricks settings if they don’t already exist. I’m hoping they do already though and maybe I just missed them.