Home>Support>Is there a action hook thats called when prebuilt layouts are imported?

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.

URL: http://swiftthemes.com

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 4 months ago Greg Priday
    Hi, I Work Here

    Hi 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.

  2. 9 years, 4 months ago Satish Gandham

    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?

  3. 9 years, 3 months ago Satish Gandham

    Bump !!

  4. 9 years, 3 months ago Satish Gandham

    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.

  5. 9 years, 3 months ago Satish Gandham

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More