Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Installing Custom Themes from API



Threaded Mode | Print  

 Installing Custom Themes from API, Activate and install a custom theme with Zip (1 Replies, Read 2535 times)
harshitpeer
Group: Member
Post Group: Newbie
Posts: 1
Status:
Hi,
I am using Softaculous API for installing WordPress.

I have a custom theme created for installation which I want to use in all my API calls. Is it possible to apply and activate that theme and also delete all other themes?

PS - Big fan of Softaculous! It makes our life so easy.
IP: --   

Installing Custom Themes from API
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5640
Status:
Hi,

Sorry for the delay in response.

Yes you can definitely install custom themes and activate them and also delete the unwanted themes.

You can use the post install Filter in Softaculous which is called after a script is installed :
https://www.softaculous.com/docs/Filters#post_install

You will get the path to installation and database credentials as parameters in this hook. You can use the same to unzip the theme files and to update the database about the selected theme.

In order to activate a theme you need to update the options table in the database
Here is the sample query :
UPDATE `wp_options` SET `option_value` = 'twentyseventeen' WHERE `option_name` = 'template' OR `option_name` = 'stylesheet';


-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 7:47 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.086