import/export plugin settings

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8624
    foxpc
    Participant

      Hi,
      i work with this plugin in many restaurant sites.
      i have multisite, so each time i active wp-pizza plugin i need to do the sam things:
      1. delete all products (that come with plugin)
      2. change all the settings (the same settings to all sites).

      the question is how can change settings by code? and delete all products on plugin activation?
      * maybe some hook/filter?

      and if there is some way to import/export only the settings without products its also can be great!

      any suggestion to save time?

      Thanks

      #8636
      Olly
      Admin & Mod

        certainly something that could be done (and i can see the usefulness of it)

        more likely to be achieved/done by adding a constant to the wp-config.php and the plugin
        (as in: if defined(‘SOME_CONSTANT’) -> do not install defaults / only set order page or some such thing)

        will have to think about this for a bit and put it on my list of things to do . (though no ETA i can promise right now)

        #8981
        Olly
        Admin & Mod

          as of v2.11.8.10

          option to not install default menu items and/or categories and/or pages by defining

          WPPIZZA_NO_DEFAULTS => (no menu items, categories, pages),
          WPPIZZA_NO_DEFAULT_ITEMS => (no menu items, categories) and/or
          WPPIZZA_NO_DEFAULT_PAGES => (no pages)

          as constants in wp-config.php

          PS:
          define(‘WPPIZZA_NO_DEFAULTS’,true);

          is the same as doing

          define(‘WPPIZZA_NO_DEFAULT_ITEMS ‘,true);
          define(‘WPPIZZA_NO_DEFAULT_PAGES ‘,true);

        Viewing 3 posts - 1 through 3 (of 3 total)
        • The topic ‘import/export plugin settings’ is closed to new replies.