This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

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

10 years ago · Last reply by Satish Gandham 10 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

5
  1. Greg Priday Staff 10 years, 10 months ago

    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. Satish Gandham 10 years, 10 months ago

    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. Satish Gandham 10 years, 10 months ago

    Bump !!

  4. Satish Gandham 10 years, 10 months ago

    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. Satish Gandham 10 years, 10 months ago

    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.

Have a different question or issue?

Start New Thread