Hi,
I was studying site-library module source code and I saw that now we have a hook named generate_add_sites
. Very easy to understand how to add new sites using this filter. But not very easy to find exactly what data I need within the directory
and plugins
array keys.
If I understood correctly within the directory
we must add a URL having inside at least two files:
– options.json
(maybe an exported generatepress configuration file)
– content.xml
(maybe an exported website using the default WordPress export feature)
Am I correct? Does exists something I need to know to properly setup the filter and have a nice experience importing sites like when importing from your official sites library?