There are some special functions that you will need to include to make a plugin function in network activation. Did you do that? (I don’t have a particular link to refer you to – some of what you will need to add depends on what you are trying to do — uploads, etc.)
If it works in your situation, it’s perfectly fine to simply single site activate a plugin on all the sites…
Thread Starter
Anonymous User 14379775
(@anonymized-14379775)
There are some special functions that you will need to include to make a plugin function in network activation. Did you do that?
Nope. @bethannon1 Any direction where to go for further information?
Thread Starter
Anonymous User 14379775
(@anonymized-14379775)
Is it like to use
add_network_option()
instead of
add_option()
and so on?
I’m no expert in this, but you might look in the developer.wordpress.org documentation, like:
https://developer.wordpress.org/cli/commands/plugin/activate/
@web2033 It would be easier to answer your question if you explained what your custom plugin actually does.
Network activation is much the same as regular activation, except that it doesn’t go through the various activation calls for the plugin on a specific site. So, if you’re getting an error, then you’re likely doing something unusual in your plugin to cause that error.
Thread Starter
Anonymous User 14379775
(@anonymized-14379775)
@otto42 it’s a parser and it:
– creates a settings sub-page in “Tools”
– saves parameters to wp_options
– uses ajax to make an external call to pull some data
– uses this data to create new pages and imports images to the media library