Plugin Author
cusmin
(@cusmin)
Hi,
If you’re looking for only custom CSS from the advanced field, you can use this option from wp_options table “agca_custom_css”
If you look for all other custom CSS, you’d need to search for all fields that start with “agca_” keywoard in wp_options table
You can either create a SQL query to fetch all of that data on DB level, or if you prefer more UX way, you can use wp-cli where you can fetch and push wp options values, and create a script that will do this automatically for you from the command line.
This way you can create an automatic import/export script using wp-cli, and share across different environments and also automate it in a process if you handle the high volume of WP sites.
Otherwise, if there’s just a handful of sites you manage, export/import feature in Advanced tab is maybe a better option.
Hope this helps!
-
This reply was modified 3 years, 3 months ago by
cusmin.
-
This reply was modified 3 years, 3 months ago by
cusmin.
Thread Starter
ac1643
(@ac1643)
Thanks for that comprehensive response, just what I wanted to know. Really appreciate it. I’ve got about 30 sites so looking to create an automated solution. I haven’t got around to using wp-cli yet so now seems like a good time, and if there’s any problem with that I’ll use SQL.
-
This reply was modified 3 years, 3 months ago by
ac1643.
Plugin Author
cusmin
(@cusmin)
Thanks for the update! Yes wp-cli is probably the best way to do this since you have 30+ sites, and with the automation it’s easier to maintain it later, in case you want to update one site and apply the change to all others. Good luck!