Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 645 Bytes

activating.md

File metadata and controls

23 lines (17 loc) · 645 Bytes

Activating Plugins

Global Plugins

Global plugins to be used on all sites can be activated by adding the plugin slug to the active-plugins array in the GoodBids MU Plugin config.json file.

If the plugin slug does not match the plugin filename (e.g. woocommerce/woocommerce.php), you need to specify the both the slug and plugin filename. (Example: advanced-custom-fields-pro/acf.php)

{
  "active-plugins": [
	"woocommerce",
	"advanced-custom-fields-pro/acf.php"
  ]
}

Site Specific Plugins

Conditional Plugins can be activated in-code by using:

wpcom_vip_load_plugin( 'plugin-name/plugin-file.php' )