2017 © Pedro Peláez
 

library wp-plugin-control

Library for WordPress plugin control

image

primetime/wp-plugin-control

Library for WordPress plugin control

  • Friday, May 8, 2015
  • by aaemnnosttv
  • Repository
  • 3 Watchers
  • 2 Stars
  • 800 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 38 % Grown

The README.md

WP Plugin Control

A simple library for WordPress plugin activation control., (*1)

Basic Usage

Intended for use within a Must Use plugin., (*2)

Force-enable a plugin

new \PrimeTime\WordPress\PluginControl\EnablePlugins('akismet/akismet.php');

Force-disable a plugin

new \PrimeTime\WordPress\PluginControl\DisablePlugins('akismet/akismet.php');

The contructors can also accept an array of plugin files:, (*3)

new \PrimeTime\WordPress\PluginControl\EnablePlugins(['akismet/akismet.php', 'hello.php']);

Multisite

Force-network-enable a plugin

new \PrimeTime\WordPress\PluginControl\NetworkEnablePlugins('akismet/akismet.php');

Force-network-disable a plugin

new \PrimeTime\WordPress\PluginControl\NetworkDisablePlugins('akismet/akismet.php');

Note: Network disabling a plugin does not prevent the plugin from being loaded, it may still be enabled at the site-level unless force-disabled., (*4)

Installation

Via Composer (recommended), (*5)

composer require primetime/wp-plugin-control:~0.1.0

The Versions

08/05 2015

dev-master

9999999-dev

Library for WordPress plugin control

  Sources   Download

GPL-2.0

The Requires

  • php >=5.4.0

 

08/05 2015

v0.1

0.1.0.0

Library for WordPress plugin control

  Sources   Download

GPL-2.0

The Requires

  • php >=5.4.0