WordPress.org

Ready to get started?Download WordPress

Forums

Network-only custom plugins? (3 posts)

  1. davehprohoods
    Member
    Posted 1 year ago #

    I am trying to get a custom plugin I wrote (that I won't be uploading to the WordPress plugin store) to be installed/activated only on the Network admin, not on the sub-sites.

    For instance, I want to set database connection options in the Network admin through this plugin, but not let any sub-site admins be able to install, activate, or use that plugin on their sites.

  2. sontru
    Member
    Posted 1 year ago #

    Use a network plugin manager plugin such as http://wordpress.org/extend/plugins/multisite-plugin-manager/ to manage and restrict plugins being available to subsites.

  3. Curtiss Grymala
    Member
    Posted 1 year ago #

    In the plugin header, you should be able to include Network: true which stops the plugin from being able to be activated on a site-by-site basis, requiring it to be network-activated/deactivated only.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.