-
Author
-
January 24, 2017 at 21:36 #150623
Rocla
ParticipantHi,
I would like to know if it’s possible to import/set options with PHP code? like add_action or something. I know the option to import the options from within WordPress GUI. I would like to automatize it.
I have an installation theme, and I would like to pre-configure Kleo Theme for the right colors, header customization etc.
Thank you, best regards,
Romain
January 26, 2017 at 06:49 #150827Laura
ModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! ?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
January 26, 2017 at 17:24 #150926Radu
ModeratorYou can use the import/export functions from theme options
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJanuary 26, 2017 at 17:28 #150929Rocla
ParticipantI know the option to import the options from within WordPress GUI. I would like to automatize it.
January 26, 2017 at 19:23 #150949Radu
ModeratorI see,
Use this function
COPY CODEfunction my_theme_options_php() { $serializedthemedata = ''; $aaa = json_decode($serializedthemedata); update_option("kleo_" . KLEO_DOMAIN, $aaa); } add_action('after_theme_setup', 'my_theme_options_php');
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJanuary 26, 2017 at 20:14 #150956Radu
ModeratorYou’re welcome
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.