Add filter to Frontend::get_init_settings() for headless/decoupled use cases #33737
turbo-soft
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the Problem
I have built a headless WordPress solution that embeds Elementor content on external frontends. Primarly for the client that uses headless wordpress for the blogs.
To initialize
elementorFrontendon the client, I need access to thefrontend config that
get_init_settings()generates.Currently, the only way to access this is via reflection since the method is
protected:Now I want to create the plugin that maybe others can use and that reflection is a bit of a hack I don't want to use.
https://github.com/turbo-soft/headless-elementor
it's still in progress.
Propose a Solution
Add a filter that exposes the settings :)
$settings = apply_filters( 'elementor/frontend/init_settings', $settings );
Additional Context
No response
Agreement
Beta Was this translation helpful? Give feedback.
All reactions