WPPizza – A Restaurant Plugin for WordPress › Support › General Support › import/export plugin settings
- AuthorPosts
- 22 March, 2015 at 8:18 am #8624
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
23 March, 2015 at 1:12 am #8636certainly 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)
8 April, 2015 at 1:27 am #8981as 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); - AuthorPosts
- The topic ‘import/export plugin settings’ is closed to new replies.