Skip to content

Instantly share code, notes, and snippets.

View palmiak's full-sized avatar
😎
Working

Maciek Palmowski palmiak

😎
Working
View GitHub Profile
@palmiak
palmiak / force-plugin-activation.php
Last active November 5, 2020 15:12 — forked from jbrinley/force-plugin-activation.php
An mu-plugin that forces selected plugins to be active, without the capability to deactivate.
<?php
/*
Plugin Name: Force Plugin Activation/Deactivation (except if WP_DEBUG is on)
Plugin URI: http://tri.be/
Description: Make sure the required plugins are always active.
Version: 1.0
Author: Modern Tribe, Inc.
Author URI: http://tri.be/
*/