Clone Network?
-
Mentioned this on Twitter, but wanted to follow up here with a few details.
I’m working on an installation where there is a need to set up kind of a “sample” network, then, whenever we create a new network, we want to clone that network (copying any settings, etc., from that specific network, rather than copying settings from any other network).
While looking through the code for the plugin, I noticed that the
add_network()
has a parameter foroptions_to_clone
andclone_network
, and that theadd_network_handler()
function looks for a $_POST variable to set those options. I did see that I can use a filter to alter theoptions_to_clone
parameter, but I don’t see anywhere, short of injecting a $_POST var, to specify which network to copy those options from.I was just wondering if there is a secret to this, or if this is a feature you’re working on removing, or how you would recommend going about cloning properties from a specific network. Thanks.
- The topic ‘Clone Network?’ is closed to new replies.