admin管理员组文章数量:1130349
Imagine that a person has a few premium themes that they use for clients. In those premium themes are many different options that can be set. Is it possible to set the theme's options to the most common and preferred choices and then export those options for later importation into other fresh WordPress installs with the same theme? That way one is not merely pointing and clicking their way through the various options over and over again for each new install.
Imagine that a person has a few premium themes that they use for clients. In those premium themes are many different options that can be set. Is it possible to set the theme's options to the most common and preferred choices and then export those options for later importation into other fresh WordPress installs with the same theme? That way one is not merely pointing and clicking their way through the various options over and over again for each new install.
Share Improve this question asked Aug 9, 2011 at 20:39 WesleyWesley 2472 gold badges3 silver badges8 bronze badges1 Answer
Reset to default 3The answer is theme depended and since most premium themes have their own framework/options panels then its going to be hard to tell where are the options are saved but in most cases they are saved in the options table in the database.
So the tricky part is to know what are the options names. You can look for them in the themes code either by searching for add_option , update_option and register_settings.
e.g. grep -rnw 'wp-content/themes/' -e 'update_option' to search from the command line.
Imagine that a person has a few premium themes that they use for clients. In those premium themes are many different options that can be set. Is it possible to set the theme's options to the most common and preferred choices and then export those options for later importation into other fresh WordPress installs with the same theme? That way one is not merely pointing and clicking their way through the various options over and over again for each new install.
Imagine that a person has a few premium themes that they use for clients. In those premium themes are many different options that can be set. Is it possible to set the theme's options to the most common and preferred choices and then export those options for later importation into other fresh WordPress installs with the same theme? That way one is not merely pointing and clicking their way through the various options over and over again for each new install.
Share Improve this question asked Aug 9, 2011 at 20:39 WesleyWesley 2472 gold badges3 silver badges8 bronze badges1 Answer
Reset to default 3The answer is theme depended and since most premium themes have their own framework/options panels then its going to be hard to tell where are the options are saved but in most cases they are saved in the options table in the database.
So the tricky part is to know what are the options names. You can look for them in the themes code either by searching for add_option , update_option and register_settings.
e.g. grep -rnw 'wp-content/themes/' -e 'update_option' to search from the command line.
本文标签:
版权声明:本文标题:configuration - Where are a theme's options stored and can I export them to be imported into freshly installed themes? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749146358a2323059.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论