[Support request] Import settings by plugin

Home Forums Support [Support request] Import settings by plugin

Home Forums Support Import settings by plugin

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #569894
    e-ducativa

    Hi!
    I would like to know if the settings can be imported in any other way than “manual”. I would like, for example, to make my own plugin which imports certain settings from a file previously exported.
    Thanks!

    #570096
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    I’m not too sure what you mean. Are you talking about the settings you’ve exported in “Appearance> GeneratePress”?

    #570577
    e-ducativa

    Yes, that file exported from Appearance>GeneratePress.

    #570751
    Tom
    Lead Developer
    Lead Developer

    So if you don’t want to use the “Import” form in “Appearance > GeneratePress”, you would have to write a function to parse the file and loop through each setting. Unfortunately it’s quite complex, so I can’t lay out how to do it here. However, if you look at the code for the Import / Export module, you’ll see how we do it 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.