Super super simple 🙂
In your plugin header put this:
Network: True
It’ll look like this:
Plugin Name: Join My Multisite
Plugin URI: http://halfelf.org/plugins/join-my-multisite/
Description: Allow logged in users to add themselves to sites (or auto-add them to all sites). <strong>Settings are per-site, under the Users menu</strong>.
Version: 1.8
Author: Mika Epstein (Ipstenu)
Author URI: http://halfelf.org/
Network: true
Text Domain: join-my-multisite
I would also put this check (Or something like it.) in on the top of the plugin file though if it can only be used on multisite. Network true only means IF it’s on Multisite, network only.
if( !is_multisite() ) { exit( 'This plugin only functions on WordPress Multisite.' ); }
Hi Mika,
Thanks for your answer and believe, it helped me a lot. However, the plugin works this way:
If installed in a multisite installation, it need to be activated only in the main site and can’t show anything in the subsistes. If it’s installed in a normal site, it should be possible to activate too.
But thanks for all, I think I’m in the right way 😀