Is there a action hook thats called when prebuilt layouts are imported?
In our theme Swift, we let users add CSS thats specific to a page using meta fields.
I would like to import the CSS associated with the layout when a user picks a predefined layout.
Is there an hook that can help me with it.
PS: Reposting again as earlier thread wasn’t approved.
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
5Hi Satish
Sorry we’ve been missing your threads.
That’s a really good question. Short answer is no, unfortunately there isn’t anything you can hook into at the moment. I’ve had a look at the code, and there’s a place I could easily add a backbone trigger that you could deal with. Would this be what you’re looking for?
I’ve forwarded this in to our issue tracking system. I’ll try get this in as a feature as soon as possible.
Hi Greg,
What is backbone trigger?
I need an action hook which notifies me of the page import action, I can get the post id from Global $post variable I guess.
Did I explain clearly?
Bump !!
Can you tell me the function responsible for importing the prebuilt layouts?
This one ?
siteorigin_panels_ajax_get_prebuilt_layout
I can then submit a patch to add an action hook.
I meant loading the data into the editor when user click on a prebuilt layout in the prebuilt layouts popup.
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.